fix typo in codeblock markdown output
authorAjay Bura <32841439+ajbura@users.noreply.github.com>
Tue, 31 Oct 2023 03:27:59 +0000 (08:57 +0530)
committerAjay Bura <32841439+ajbura@users.noreply.github.com>
Tue, 31 Oct 2023 03:27:59 +0000 (08:57 +0530)
src/app/plugins/markdown.ts

index 40427a7fc3593238ce4370d0a087a2e5177e6892..9b3b82f781954a52ee79339a05e77c31c85aa77f 100644 (file)
@@ -254,7 +254,7 @@ const CodeBlockRule: BlockMDRule = {
   html: (match) => {
     const [, g1, g2] = match;
     const classNameAtt = g1 ? ` class="language-${g1}"` : '';
-    return `<pre data-md="${CODEBLOCK_MD_1}"><code${classNameAtt}>${g2}</code$></pre>`;
+    return `<pre data-md="${CODEBLOCK_MD_1}"><code${classNameAtt}>${g2}</code></pre>`;
   },
 };