markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

Documents not rendered if they start with HTML comment

Open EuropeanDeveloper opened this issue 2 years ago • 6 comments
trafficstars

Documents are not rendered if they start with HTML comment.

Example:

<!-- HTML comment -->

# Lorem Ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Result:

screenshot

Version: Markdown Viewer 5.1 Browser: Mozilla Firefox 111.0

EuropeanDeveloper avatar Mar 19 '23 11:03 EuropeanDeveloper

I'm not able to reproduce it on my end. I tried with both compilers and using different option combinations. Not sure what else can be different.

simov avatar Mar 19 '23 13:03 simov

I used the default settings. Still, the HTML_Comment_Test.md file is not rendered.

EuropeanDeveloper avatar Mar 30 '23 08:03 EuropeanDeveloper

It works both on file:/// and http://localhost on my end, MV 5.1 and FF 111 on Linux.

simov avatar Mar 30 '23 09:03 simov

I've tried it on Windows 11, maybe is it because of that?

EuropeanDeveloper avatar Mar 30 '23 10:03 EuropeanDeveloper

That's even more strange, the web rendering part of Firefox should behave the same on all platforms.

simov avatar Mar 30 '23 11:03 simov

I also have this issue. For example:

# July 3, 2024 (Wednesday)
<title>July 3, 2024 (Wednesday)</title>

works okay, but:

<title>July 3, 2024 (Wednesday)</title>
# July 3, 2024 (Wednesday)

does not.

This is in Firefox 127.0.2.

tcouey avatar Jul 03 '24 23:07 tcouey