laobubu / HyperMD

A WYSIWYG Markdown Editor for browsers. Break the Wall between writing and previewing.
MIT License
1.47k stars 137 forks source link

Bold followed by a hyphen on the next line becomes a header #42

Closed michaelgmcd closed 6 years ago

michaelgmcd commented 6 years ago

I'm hoping these issues will turn more into PR's as I become familiar with HyperMD, but I've found another weird bug that I'm not sure what the cause is:

bold-header-bug

laobubu commented 6 years ago

HyperMD's Markdown Parser is based on CodeMirror's Markdown Mode. Just confirmed that CodeMirror has the same problem. Demo Here. Note that headers are blue.

You can submit this issue to CodeMirror

laobubu commented 6 years ago

According to CommonMark Spec, this is expected behavior (see https://spec.commonmark.org/0.28/#example-52 )

You can add an empty line between a list and a normal paragraph.