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

Meta tags in generated html not closed #100

Open
hddreier opened this issue Jun 13, 2024 · 1 comment
Open

Meta tags in generated html not closed #100

hddreier opened this issue Jun 13, 2024 · 1 comment

Comments

@hddreier
Copy link

MarkdownPreviewForm.cs Lines 27 & 28 tags are not closed. This leads to an exception when html output is parsed with an XML parser.

@rdipardo
Copy link
Contributor

This leads to an exception when html output is parsed with an XML parser.

The plugin generates HTML previews. HTML does not require <meta> tags to be self-closing:

On void elements, [/ (U+002F)] does not mark the start tag as self-closing but instead is unnecessary and has no effect of any kind. For such void elements, it should be used only with caution — especially since, if directly preceded by an unquoted attribute value, it becomes part of the attribute value rather than being discarded by the parser.

https://html.spec.whatwg.org/multipage/syntax.html#start-tags

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

No branches or pull requests

2 participants