fix typo in codeblock markdown output

This commit is contained in:
Ajay Bura 2023-10-31 08:57:59 +05:30
parent 687ad8d0f0
commit 1db0a9eaa8

View 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>`;
},
};