As the Svelte compiler is pretty strict about invalid HTML (such as <img> tags not being closed) it's getting impossible to use MDsveX in an up-to-date SvelteKit project.
Not sure what HTML stringify algorithm MDsveX is using (probably @starptech/prettyhtml-hast-to-html), but it's not closing image tags. If there's an option like the closeSelfClosing from rehype-stringify it should be used.
I tried using rehype-stringify as via rehypePlugins but it didn't work.
As the Svelte compiler is pretty strict about invalid HTML (such as
<img>
tags not being closed) it's getting impossible to use MDsveX in an up-to-date SvelteKit project.Not sure what HTML stringify algorithm MDsveX is using (probably @starptech/prettyhtml-hast-to-html), but it's not closing image tags. If there's an option like the
closeSelfClosing
from rehype-stringify it should be used.I tried using
rehype-stringify
as viarehypePlugins
but it didn't work.