fix typo in codeblock markdown output
This commit is contained in:
parent
687ad8d0f0
commit
1db0a9eaa8
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ const CodeBlockRule: BlockMDRule = {
|
||||||
html: (match) => {
|
html: (match) => {
|
||||||
const [, g1, g2] = match;
|
const [, g1, g2] = match;
|
||||||
const classNameAtt = g1 ? ` class="language-${g1}"` : '';
|
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>`;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue