-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
italic html incorrectly rendered? #216
Comments
@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:
|
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. |
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 |
+1 |
Closing as stale. See #956 |
This is still all too real, unfortunately:
|
I don't know whether it should be considered a bug or a feature.
I've enabled gfm while using the
marked
function.When the markdown text is:
the html text rendered by marked is
But, I think the "correct" html should be:
It's a conflict caused by gfm and original markdown syntax. Maybe you guys (developers of marked) should consider which result is "more correct". :-)
The text was updated successfully, but these errors were encountered: