From 3fb9bb9a98fe56e8964243c6a3027790c0901126 Mon Sep 17 00:00:00 2001 From: AndzejsP Date: Fri, 9 Jun 2023 12:40:47 +0300 Subject: [PATCH] finally fixed codeblock issues --- web/src/components/MarkdownRenderer.vue | 24 +++++++++--------------- web/src/components/Message.vue | 14 +++++++------- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/web/src/components/MarkdownRenderer.vue b/web/src/components/MarkdownRenderer.vue index a8b6632d..3e97b25d 100644 --- a/web/src/components/MarkdownRenderer.vue +++ b/web/src/components/MarkdownRenderer.vue @@ -1,5 +1,5 @@ @@ -32,36 +32,30 @@ const markdownIt = new MarkdownIt('commonmark', { return ( - '
' + + '
' + languageCapital + - '
' +
+          '
' +
 
-          '' +
+          '' +
           hljs.highlightAuto(str).value +
           '
' + '
' ); } catch (__) { } } - // return ( - // '
' +
-    //   '' +
-    //   markdownIt.utils.escapeHtml(str) +
-    //   '
' - // ); - return ( - '
' + + '
' + languageCapital + - '
' +
+      '
' +
 
-      '' +
+      '' +
       markdownIt.utils.escapeHtml(str) +
       '
' + '
' ); + } }).use(emoji); @@ -116,4 +110,4 @@ export default { }; - \ No newline at end of file + \ No newline at end of file diff --git a/web/src/components/Message.vue b/web/src/components/Message.vue index b9d48667..5ab6f58a 100644 --- a/web/src/components/Message.vue +++ b/web/src/components/Message.vue @@ -1,14 +1,14 @@