diff --git a/.github/chat.png b/.github/chat.png index 5216606..e0805a8 100644 Binary files a/.github/chat.png and b/.github/chat.png differ diff --git a/.github/files.png b/.github/files.png index 3dec546..ccc7ea7 100644 Binary files a/.github/files.png and b/.github/files.png differ diff --git a/.github/images.png b/.github/images.png index d90a1c9..db643cc 100644 Binary files a/.github/images.png and b/.github/images.png differ diff --git a/clean.go b/clean.go index e2dc17a..79e842a 100644 --- a/clean.go +++ b/clean.go @@ -6,6 +6,7 @@ var cleaner = strings.NewReplacer( "‑", "-", "—", "-", "–", "-", + "•", "-", "“", "\"", "”", "\"", diff --git a/static/js/markdown.js b/static/js/markdown.js index 56000ca..c313cb7 100644 --- a/static/js/markdown.js +++ b/static/js/markdown.js @@ -92,7 +92,7 @@ } function parse(markdown) { - const starts = (markdown.match(/^FILE\s+"([^"]+)"(?:\s+LINES\s+\d+)?\s*\r?\n<>\s*$/gm) || []).length, + const starts = (markdown.match(/^ ?FILE\s+"([^"]+)"(?:\s+LINES\s+\d+)?\s*\r?\n<>\s*$/gm) || []).length, ends = (markdown.match(/^<>$/gm) || []).length; if (starts !== ends) { @@ -102,7 +102,7 @@ const files = [], table = {}; - markdown = markdown.replace(/^FILE\s+"([^"]+)"(?:\s+LINES\s+(\d+))?\s*\r?\n<>\s*\r?\n([\s\S]*?)\r?\n<>$/gm, (_a, name, _b, content, ending) => { + markdown = markdown.replace(/^ ?FILE\s+"([^"]+)"(?:\s+LINES\s+(\d+))?\s*\r?\n<>\s*\r?\n([\s\S]*?)\r?\n<>$/gm, (_a, name, _b, content, ending) => { const index = files.length, id = generateID();