Open josteph opened 3 years ago
same here :(
You can use: .use(remarkHTML, { sanitize: false })
Tried this and it worked for me.
const content = await remark()
.use(html, { sanitize: false })
.use(prism)
.process(markdown);
Disabling sanitize
might just revert to the old behavior which certainly works just fine, while the issue still remains.
Thanks. It's helpful to me :)
Does anybody know what this sanitize property does anyway?
Does anybody know what this sanitize property does anyway?
As far as I'm aware, sanitize removes your markdown of Githubissues.
After the
sanitize
option forremark-html
was changed by default totrue
, this plugin seems to has stopped working. Or perhaps I'm missing an option forremark-prism
.Related release: https://github.com/remarkjs/remark-html/releases/tag/13.0.2