showdown/test/features/#164.2.disallow_underscore_emphasis_mid_word.html
Estevão Soares dos Santos 7ee2017c56 fix(subParsers/italicsAndBold.js): fix broken em/strong tags when used with literalMidWordUnderscores
When literalMidWordUnderscoresis set to true, em and strong tags that start or end a paragraph don't get parsed as such.
This fixes this issue.

Closes #174
2015-07-14 16:51:26 +01:00

19 lines
433 B
HTML

<p>this is a sentence_with_mid underscores</p>
<p>this is a sentence with just_one underscore</p>
<p>this <em>should be parsed</em> as emphasis</p>
<p>this is double__underscore__mid word</p>
<p>this has just__one double underscore</p>
<p>this <strong>should be parsed</strong> as bold</p>
<p>emphasis at <em>end of sentence</em></p>
<p><em>emphasis at</em> line start</p>
<p>multi <em>line emphasis
yeah it is</em> yeah</p>