Cocoanetics / DTMarkdownParser

An event-based parser for markdown text
BSD 2-Clause "Simplified" License
197 stars 15 forks source link

Nested tag in header tags #18

Open Bluezen opened 10 years ago

Bluezen commented 10 years ago

Phrase emphasis or links are not parsed correctly when nested in headers. For exemple:

# [Click](http://test.com)

will be rendered in HTML as:

<h1>[Click](<a href="http://test.com">http://test.com</a>)</h1>

instead of:

<h1><a href="http://test.com">Click</a></h1>

or

# **Bold**

as

<h1>**Bold**</h1>

instead of

<h1><strong>Bold</strong></h1>