-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Underscores in words #96
Comments
Came here to find any issues related to underscores/asterisks/etc embedded in URLs, for example:
This ultimately results in malformed HTML, so I think it's essentially the same issue as mentioned by @SystemParadox |
Edit: Just put a backslash in front of the underscore and it will prevent this situation. |
@zachad thanks for posting the work around! |
@pdeschen It's not a bug, it's by design
Showdown is vanilla markdown. As stated in the original specifications:
The correct way to prevent the behavior (or to create a literal asterisk or underscore) is to escape it with backslash, as stated in the specs:
|
Also I could not reproduce the issue @shhQuiet refers to! Please provide an example where showdown incorrectly parses links and images with underscore so we can have a better understanding of the issue. |
But vanilla markdown is unmaintained and broken in this behaviour. Could an option be added to support github flavoured markdown? Thanks. |
As described in Github flavoured markdown, it makes no sense to italicise parts of a word.
Underscores in words usually refer to something like a variable or field name so it is particularly bad when these are parsed out and converted to italics.
Please can showdown be changed to use the github rules for this.
Thanks.
The text was updated successfully, but these errors were encountered: