vmg / sundown

Standards compliant, fast, secure markdown processing library in C
1.99k stars 385 forks source link

Issue with nested strong/em. #56

Closed uhnomoli closed 12 years ago

uhnomoli commented 12 years ago
__foo[___bar___]__
**foo[***bar***]**

Is being rendered as:

<strong>foo[</strong><em>bar__</em>]__

instead of:

<strong>foo[</strong><em>bar</em><strong>]</strong>

Note, mixing asterisks and underscores works as intended though.

__foo[__*bar*__]__
**foo[**_bar_**]**
vmg commented 12 years ago

Wow, that was heuh... Kind of a corner case. ^^

Just pushed the fix. Sorry this took so long, I've been busy. Cheers!