toptensoftware / markdowndeep

Open-source implementation of Markdown for C# and Javascript
268 stars 120 forks source link

Several bold or italic words in parenthesis in a paragraph and markdowndeep is broken #41

Open cadilhac opened 10 years ago

cadilhac commented 10 years ago

Just try this:

orem ipsum dolor sit (amet), consectetur. Aliquam ut (tristique) porttitor. Fusce eget (purus) cursus.

It will rendre italic from tristique to purus. Same if this is bold. If I switch to markdownsharp, it renders well. This is a total dealbreaker since having several bold or italic words in a paragraph is a so basic requirement.

Thanks to check that. Note: using nuget packages for both libraries.

jwalkerblt commented 10 years ago

I have noticed the same issue. using the above example will render like this:

<p>Lorem ipsum dolor sit (<em>amet</em>), consectetur. Aliquam ut (<em>tristique<em>) porttitor. Fusce eget (</em>purus</em>) cursus.</p>

*Notice the improper opening and closing of the second two italics.

I am using MarkdownDeep.NET 1.5 via nuget