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

Add SVG element #314

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Add SVG element #314

merged 1 commit into from
Jul 30, 2024

Conversation

kensanata
Copy link
Contributor

SVG is now part of HTML 5 and the SVG element a valid top-level element. The other SVG element, however, do not stand on their own. https://html.spec.whatwg.org/dev/embedded-content-other.html#svg-0

Note: This does not match up with the definition of CommonMark HTML blocks. CommonMark does not recognize the SVG element as a HTML block. In this respect, however, it would seem that CommonMark is lagging behind. https://spec.commonmark.org/0.31.2/#html-blocks

SVG is now part of HTML 5 and the SVG element a valid top-level
element. The other SVG element, however, do not stand on their own.
https://html.spec.whatwg.org/dev/embedded-content-other.html#svg-0

Note: This does not match up with the definition of CommonMark HTML
blocks. CommonMark does not recognize the SVG element as a HTML block.
In this respect, however, it would seem that CommonMark is lagging
behind. https://spec.commonmark.org/0.31.2/#html-blocks
@kensanata
Copy link
Contributor Author

OK, so the test now shows that a lone RECT element does not get special treatment. It's only the SVG element that does.

@kjk kjk merged commit 034f12a into gomarkdown:master Jul 30, 2024
1 check passed
@kjk
Copy link
Contributor

kjk commented Jul 30, 2024

Thanks.

Nitpick: the test could be shorter (one function, data driven, since they only differ in input / exp string), but it's fine.

@kensanata kensanata deleted the svg branch July 30, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants