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

File containing HTML does not render if loaded from command line.

Open tcouey opened this issue 1 year ago • 0 comments

This is a bit of an edge case, granted, but it is a bug. If I launch Firefox 127 (on Windows 10) from the command line and give it a markdown file to open, it opens the raw file. If I then press F5, it loads the extension and renders properly. Here's the really weird thing, it only happens if the file contains an HTML tag (in this case, a

tag). Because of the other <a href="https://github.com/simov/markdown-viewer/issues/209" rel="nofollow" target="_blank" >issue </a> with HTML, I have the <title> tag as the second line in the file. If the file is just pure markdown, it loads fine from the command line. Here's a sample that triggers the bug: <pre><code># July 3, 2024 (Wednesday) <title>July 3, 2024 (Wednesday)</title> ## Topic </code></pre>

tcouey avatar Jul 03 '24 23:07 tcouey