mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
fix sanitizing bug in Code block
This commit is contained in:
@@ -14,7 +14,7 @@ var md = markdownit({
|
|||||||
return hljs.highlight(lang, str).value
|
return hljs.highlight(lang, str).value
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
return str
|
return str.replace(/\&/g, '&').replace(/\</g, '<').replace(/\>/g, '>').replace(/\"/g, '"')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
md.use(emoji, {
|
md.use(emoji, {
|
||||||
|
|||||||
Reference in New Issue
Block a user