NppMarkdownPanel icon indicating copy to clipboard operation
NppMarkdownPanel copied to clipboard

Meta tags in generated html not closed

Open hddreier opened this issue 1 year ago • 1 comments

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

hddreier avatar Jun 13 '24 11:06 hddreier

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

rdipardo avatar Aug 26 '24 02:08 rdipardo

@hddreier plz check if the new version 0.9.0 resolves your issue https://github.com/mohzy83/NppMarkdownPanel/releases/tag/0.9.0

mohzy83 avatar Jun 22 '25 17:06 mohzy83