markdown-js icon indicating copy to clipboard operation
markdown-js copied to clipboard

Bug with simultaneous bold and italic

Open LukeGT opened this issue 11 years ago • 3 comments

Input:

***something***

expected output:

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

actual output:

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

Using latest browser release

LukeGT avatar Mar 11 '14 12:03 LukeGT

Seems

___something___

causes the same effect, but

*__something__*

works fine.

cptaffe avatar May 21 '14 19:05 cptaffe

Issue is reproducible as of 4/8/2015.

raorao avatar Apr 08 '15 19:04 raorao

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.

OJFord avatar Jul 12 '15 16:07 OJFord