evilstreak / markdown-js

A Markdown parser for javascript
7.69k stars 863 forks source link

Bug with simultaneous bold and italic #181

Open LukeGT opened 10 years ago

LukeGT commented 10 years ago

Input:

***something***

expected output:

<p><strong><em>something</em></strong></p>

actual output:

<p><strong>*something</strong>*</p>

Using latest browser release

cptaffe commented 10 years ago

Seems

___something___

causes the same effect, but

*__something__*

works fine.

raorao commented 9 years ago

Issue is reproducible as of 4/8/2015.

OJFord commented 8 years ago

Thanks @cptaffe for the workaround - would be good to have this fixed though.

It's probably not a trivial fix, since it is of course ambiguous - but probably everyone would expect the 'greedier' behaviour, marking down as much as possible.