Here are the conditions to reproduce:
- Use
_
or__
- Finish the underscored text with
)
, followed by 1+ white space characters_)
(in this case, no closing.
is necessary) - Add a
.
right after the closing underscores,_)
.` _(in this case, you can have any amount of whitespace before the closing underscore)
- Finish the underscored text with
Failing to convert:
_) _
__) __
_)_.
__)__.
_) _.
Succeeding:
_)_
__)__
In my opinion *
and _
should behave identically at all times (both single and doubles). It’s really strange that these corner cases behave one way using underscores and another using asterisks. Particularly when the rules for the parsing bug seem so arbitrary.
[See dingus][1]
[1]: http://spec.commonmark.org/dingus/?text=Failing%20to%20convert%3A -%20`_)%20_%0A-%20%60__)%20__%60%0A-%20%60_).%60%0A-%20%60__)__.%60%0A-%20%60)%20%20%20%20%20%20_.%60%0A%0AIn%20markdown%3A%0A%0A_)%20_%0A__)%20__%0A_).%0A__)__.%0A)%20%20%20%20%20%20_.%0A%0ASucceeding%3A%0A%0A-%20%60_)%60%0A-%20%60__)__%60%0A%0AIn%20markdown%3A%0A%0A)_%0A__)__%0A