While I'm a huge fan of this mode, one thing has bugged me for years: whenever you create two adjoining (HTML) comments — without any whitespace between them — the second renders in the default face, instead of the comment face. This is annoying to me, since my documents are filled with comments, meaning that I have to jump to all sorts of hoops to make two adjoining comments discernible from the main text (I write academic documents in markdown on a daily basis, and I use comments for all sorts of purposes).
It's of course possible to solve this issue by inserting whitespace in between the two comments. However, this distracts me from my writing flow, and, more importantly, creates unwanted whitespace in the resulting document (e.g. a pdf I create from the .md file; see screenshot in §Actual Behavior).
Note that this does not happen in emacs' HTML-mode
(i.e. both adjoining comments render in the correct face). As such, this issue should in principle be solvable.
Whenever two comments are placed side-by-side (without whitespace between them), both should render in the markdown-comment-face
.
The second comment is rendered in the default face. Here is a screenshot that shows the problem:
Steps to ReproduceMain text <!--a comment--><!--another comment-->.
(ironically, github does render this example correctly when using markdown syntax highlighting!)
BacktraceNot applicable I think; this is reproducible using emacs -Q
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4