showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript
http://www.showdownjs.com/
MIT License
14.26k stars 1.56k forks source link

[BUG] `em` surrounded by two `strong`s causing unexpected output #733

Open pyericz opened 5 years ago

pyericz commented 5 years ago

input:

**bold***italic***bold**

output:

<p><strong>bold<strong><em>italic</em></strong>bold</strong></p>

expected output:

<p><strong>bold</strong><em>italic</em><strong>bold</strong></p>