sanitize display name and markdown codeblock.

This commit is contained in:
Miroslav Šedivý
2021-11-26 21:52:24 +01:00
parent b8531512b7
commit b348f48092
3 changed files with 5 additions and 6 deletions

View File

@ -90,7 +90,7 @@ const rules: MarkdownRules = {
}
},
html(node, output, state) {
return htmlTag('pre', htmlTag('code', node.content, state), {}, state)
return htmlTag('pre', htmlTag('code', md.sanitizeText(node.content), {}, state), {}, state)
},
},
blockQuote: {