You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Emphasis and underscores in the middle of a word #343
I'm using marked.js v.0.3.1 with default settings.
Seems it breaks with underscores in the middle of word if there is also emphasis block in the same paragraph.
For example, this:
just_a_few_underscores
becomes this
just_a_few_underscores
as expected.
But this:
just_a_few_underscores. And here is the _emphasis_.
becomes:
justa _few_underscores. And here is emphasis.
Output html:
<p>just<em>a_few_underscores. And here is _emphasis</em>.</p>
Activity
javoire commentedon Sep 22, 2014
+1
tylercollier commentedon Oct 21, 2014
+1
santhosh-tekuri commentedon Feb 8, 2015
+1
suzanshakya commentedon Aug 10, 2015
+1
joshbruce commentedon Apr 13, 2018
Closing as covered by CommonMark compliance. See also #1106 and #1216