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
GitHub-flavoured Markdown has docs and they say that underscores inside words are ignored (there's a reason for that: GitHub is a coding site, and words with underscores are likely to be snake-cased identifiers from some code).
In order to imitate GFM perfectly, marked should ignore such underscores (in GFM mode) as well.
However, I have to admit (additionally) that the corresponding section of GFM docs is titled “Multiple underscores in words” and nothing is said about single underscores.
Activity
greduan commentedon Aug 7, 2013
@chjj 👍 I support this change. It's a really basic but very important change. :)
For a possible markdown it might be wise to just escape these underscores:
Mithgol commentedon Aug 9, 2013
GitHub-flavoured Markdown has docs and they say that underscores inside words are ignored (there's a reason for that: GitHub is a coding site, and words with underscores are likely to be snake-cased identifiers from some code).
In order to imitate GFM perfectly, marked should ignore such underscores (in GFM mode) as well.
Mithgol commentedon Aug 9, 2013
However, I have to admit (additionally) that the corresponding section of GFM docs is titled “Multiple underscores in words” and nothing is said about single underscores.
Mithgol commentedon Aug 9, 2013
But the GitHub devs have (most probably) just forgotten to mention that single underscores are ignored in words as well as multiple underscores.
A simple test (i.e. pasting
abc_def ghi_in a GitHub comment and then hitting the “Preview” tab) shown that's indeed the case.javoire commentedon Sep 22, 2014
+1
joshbruce commentedon Dec 6, 2017
Closing as stale. See #956
Feder1co5oave commentedon Jan 25, 2018
This is still all too real, unfortunately:
joshbruce commentedon Apr 13, 2018
Closing as covered by CommonMark compliance. See #1106 and #1216.