ali-rantakari / peg-markdown-highlight

C library for Markdown syntax highlighting, using a recursive-descent parser.
Other
181 stars 36 forks source link

ATX heading-like construct in list item is treated as heading #7

Closed uranusjr closed 8 years ago

uranusjr commented 10 years ago

Example:

* Foo
* # Bar

# Bar will be highlighted as heading.

ali-rantakari commented 8 years ago

This might seem unintuitive, but it's how peg-markdown handles it as well:

$ peg-markdown example.md 
<ul>
<li>Foo</li>
<li><h1>Bar</h1></li>
</ul>