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

bold text becomes broken after makeHtml(makeMarkdown(...)) #726

Open Xatenev opened 5 years ago

Xatenev commented 5 years ago

I noticed that the string becomes broken after parsing it via

const converter = new showdown.Converter();
converter.makeHtml(converter.makeMarkdown('<strong> test</strong>')) // note the space before test

Expected:

<strong> test</strong>

Actual:

<p>** test**</p>

Edit:

makeMarkdown() seems to work fine, the output is

** test** // ok