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
It seems literalMidWordAsterisks is treating some non-word characters (such as ,) as word characters and not converting to HTML properly. This was working correctly in 1.3.0 but not in 1.7.1 (these are the only versions I’ve tested).
Correct behavior in 1.3.0:
constmd=newshowdown.Converter({literalMidWordAsterisks: true})md.makeHtml('strippers, **hitler**, and stalin')// → <p>strippers, <strong>hitler</strong>, and stalin</p>
Incorrect in 1.7.1:
constmd=newshowdown.Converter({literalMidWordAsterisks: true})md.makeHtml('strippers, **hitler**, and stalin')// → <p>strippers, **hitler**, and stalin</p>
If you remove the literalMidWordAsterisks option in 1.7.1 it works again:
constmd=newshowdown.Converter()md.makeHtml('strippers, **hitler**, and stalin')// → <p>strippers, <strong>hitler</strong>, and stalin</p>
The text was updated successfully, but these errors were encountered:
It seems
literalMidWordAsterisks
is treating some non-word characters (such as,
) as word characters and not converting to HTML properly. This was working correctly in1.3.0
but not in1.7.1
(these are the only versions I’ve tested).Correct behavior in
1.3.0
:Incorrect in
1.7.1
:If you remove the
literalMidWordAsterisks
option in1.7.1
it works again:The text was updated successfully, but these errors were encountered: