You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: