mdex
mdex copied to clipboard
Issue with HTML conversion when using render: [unsafe: true]
Description
MDEx.to_html!("<b>test</b> <b>test2</b>", render: [unsafe: true])
The result of this code should be:
"<p><b>test</b> <b>test2</b></p>"
But currently it returns:
"<p><b>test</b> <b>test2</b></p>"
Hi @ibnteo how problematic is that for you right now? I'm working on a feature that would fix that issue but it may take a couple weeks to release, or a quicker workaround if that's really a blocking issue for you (but I'd like to avoid such workaround).
It's not important right now, I've written a simple Rustler wrapper around comrak for myself, and it works incredibly fast without any unnecessary conversions. But if there's a bug, it would be good to fix it in the future.
Cool, I'll keep it open. Will be fixed soon.