diff --git a/web/src/components/MarkdownRenderer.vue b/web/src/components/MarkdownRenderer.vue index cdd70e96..f0074d57 100644 --- a/web/src/components/MarkdownRenderer.vue +++ b/web/src/components/MarkdownRenderer.vue @@ -24,29 +24,23 @@ export default { }, mounted() { const markdownIt = new MarkdownIt({ - html: false, // Enable HTML tags in source - xhtmlOut: true, // Use '/' to close single tags (
). - // This is only for full CommonMark compatibility. - breaks: true, // Convert '\n' in paragraphs into
- // langPrefix: 'language-', // CSS language prefix for fenced blocks. Can be - // useful for external highlighters. - linkify: true, // Autoconvert URL-like text to links - - // Enable some language-neutral replacement + quotes beautification - // For the full list of replacements, see https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.js + html: false, + xhtmlOut: true, + breaks: true, + linkify: true, typographer: true, highlight: (str, lang) => { if (lang && hljs.getLanguage(lang)) { try { return ( - '
' +
+              '
' +
               hljs.highlight(lang, str, true).value +
               '
' ); } catch (__) { } } return ( - '
' +
+          '
' +
           markdownIt.utils.escapeHtml(str) +
           '
' ); @@ -62,14 +56,14 @@ export default { if (lang && hljs.getLanguage(lang)) { try { return ( - '
' +
+                '
' +
                 hljs.highlight(lang, str, true).value +
                 '
' ); } catch (__) { } } return ( - '
' +
+            '
' +
             markdownIt.utils.escapeHtml(str) +
             '
' ); @@ -82,20 +76,3 @@ export default { }; - - \ No newline at end of file diff --git a/web/src/components/Message.vue b/web/src/components/Message.vue index b0597fff..ab28c228 100644 --- a/web/src/components/Message.vue +++ b/web/src/components/Message.vue @@ -13,9 +13,10 @@
- -