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

Output SVG as XML, not HTML #3

Merged
merged 1 commit into from
Oct 9, 2023
Merged

Output SVG as XML, not HTML #3

merged 1 commit into from
Oct 9, 2023

Conversation

remcohaszing
Copy link
Owner

This makes HTML void elements explicitly self-closing, making it valid SVG, but also keeping it valid HTML.

Empty SVG elements are now self closing. Self-closing non-void HTML elements are not valid, but self-closing embedded SVG tags are.

Closes remcohaszing/rehype-mermaid#5

This makes HTML void elements explicitly self-closing, making it valid
SVG, but also keeping it valid HTML.

Empty SVG elements are now self closing. Self-closing non-void HTML
elements are not valid, but self-closing embedded SVG tags are.

Closes remcohaszing/rehype-mermaid#5
@remcohaszing remcohaszing added the bug Something isn't working label Oct 9, 2023
@remcohaszing remcohaszing merged commit dab8500 into main Oct 9, 2023
8 checks passed
@remcohaszing remcohaszing deleted the output-as-xml branch October 9, 2023 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Cannot read properties of undefined (reading 'baseVal')
1 participant