mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-23 21:17:59 +02:00
sanitize display name and markdown codeblock.
This commit is contained in:
parent
b8531512b7
commit
b348f48092
3 changed files with 5 additions and 6 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue