Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mdsvex HTML stringification produces invalid HTML #559

Open
gka opened this issue Jan 8, 2024 · 1 comment
Open

Mdsvex HTML stringification produces invalid HTML #559

gka opened this issue Jan 8, 2024 · 1 comment
Milestone

Comments

@gka
Copy link

gka commented Jan 8, 2024

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.

@pngwn
Copy link
Owner

pngwn commented Jan 8, 2024

Do you have an example of the problematic code please.

@pngwn pngwn modified the milestones: 1.0, 1.0 docs + integrations Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants