Skip to content
Snippets Groups Projects
Unverified Commit 3db7551a authored by Johann150's avatar Johann150 Committed by GitHub
Browse files

fix html conversion issue with code blocks (#7943)

parent 37b535df
No related branches found
No related tags found
No related merge requests found
......@@ -147,7 +147,7 @@ export function fromHtml(html: string, hashtagNames?: string[]): string | null {
// block code (<pre><code>)
case 'pre': {
if (node.childNodes.length === 1 && node.childNodes[0].nodeName === 'code') {
text += '```\n';
text += '\n```\n';
text += getText(node.childNodes[0]);
text += '\n```\n';
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment