jbt / markdown-editor

Live (Github-flavored) Markdown Editor
http://jbt.github.com/markdown-editor
ISC License
2.82k stars 643 forks source link

Empty line prevents HTML comments from ending #128

Open ryangalamb opened 3 years ago

ryangalamb commented 3 years ago

The following snippet (outside a code block) prevents the comment from ending.

<!--

-->

It looks like any multi-line comment with an empty line triggers the bug. The following snippet ends the comment successfully:

<!--

<!-- -->

Here's a demonstration of the bug in the live editor: bug repro link

(Follow the link, exit reading mode and then click in the editor section to make the raw markdown appear.)