joplin-outline
joplin-outline copied to clipboard
Headings are not rendered if following an unclosed comment tag (i.e. <!-- )
Problem Background
- I was copying down some notes from a book I was reading and I had a section of example code wrapped in the three backticks like so:
Example code line 1
Example code line 2
...
Example code line N
- This particular code snippet happened to contain an unclosed HTML comment tag like so:
<tag 1>test tag</tag 1>
<tag 2>test tage</tag 2>
<!-- UNCLOSED COMMENT
- I had some headings underneath that would not be rendered in the "Outline view" and it took me a while to realize that it was due to this unclosed comment tag. If I put a line with
-->
(note--!>
does NOT work) underneath of the code box like so then I would regain functionality in the "Outline view" and I could see the rest of my headings rendered.
<tag 1>test tag</tag 1>
<tag 2>test tage</tag 2>
<!-- UNCLOSED COMMENT
-->
- Without this line the Outline View heading rendered breaks for the remainder of the note.
Proposed Fix
-
I think there should be a way to prevent Joplin, or the Outline Renderer from trying to evaluate HTML comment tags when they are enclosed within a CODE block (i.e. between two sets of backticks).
- This would solve the issue and make it so I do not have to add an extra nonsense line to my note to "close" the unclosed tag.
-
I am not sure if this is an issue within the Outline Plugin, or within Joplin itself...
-
I can provide screenshots if needed. Just ask. Thanks.