ssssota / svelte-exmarkdown

Svelte component to render markdown.
https://ssssota.github.io/svelte-exmarkdown
MIT License
177 stars 6 forks source link

RehypeRaw is incompatible with RehypeSlug #259

Open OrangeBurrito opened 1 month ago

OrangeBurrito commented 1 month ago

As the title says. If the rehypeRaw plugin is added (in order to use GFM), it works fine until you use the rehypeSlug plugin, in which case the inline HTML is not properly rendered. They work separately.

ssssota commented 1 month ago

I think it works fine. https://stackblitz.com/edit/svelte-exmarkdown-rehype-slug?file=src%2FApp.svelte&terminal=dev

Please share reproduction sample!