markdown.rs icon indicating copy to clipboard operation
markdown.rs copied to clipboard

Support for inline HTML blocks

Open zr5dt opened this issue 4 years ago • 1 comments

Hi Johann,

Thank you for the great markdown crate. I am using it in a small Rocket Web application, I'm developing for my company. However I need support for inline HTML so I decided to try contribute to the crate and offer a solution for this feature.

Web development is not my expertise and I am also very new to Rust (coming from a C background). Hopefully I haven't gone too far off the rails, and you can use/merge my solution. It seems to pass most of the tests except a weird xHTML case, which I have noted in the file tests/fixtures/files/advanced_inline_html.text.

Regards Dario

zr5dt avatar Dec 30 '20 22:12 zr5dt

+1 for this. I end up needing to fall back to html for many scenarios, and if it gets escaped I can no longer do that.

As an example, there is no way to create links that open in a new tab. There isn't markdown syntax for that, so the best solution would likely be to use html directly.

rplopes avatar Jan 17 '21 09:01 rplopes