-
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
Code blocks with email-like text are no longer parsed as code #1218
Comments
seems to work in the latest 0.3.19: demo |
Sorry, I've oversimplified the example. Try: |
Yup |
Looking at the specs to try and figure out a test to create and they don't seem to call out this specific use case. For CommonMark:
So, this would be something related to GitHub Flavored Markdown:
Looking at code spans (examples 322 to 327) I would suspect that the proper behavior would be something like:
@kornelski: Is that what you're looking for? |
In my case |
IMO creating a link without |
GFM complies with CommonMark; so, autolinking should be invoked by the |
in order to pass CommonMark Example #583 This autolinking without |
Think this conversation might go beyond this issue...deeper issues with Marked at the moment...making a new issue: |
To pass I think we actually need a way to specify just CommonMark - not GFM or Pedantic. We currently don't have anything like that. The CommonMark Autolinks remain in the CommonMark spec tests - where they are at present - of which 583 is already listed as failing but should pass. |
According to gfm spec, autolinks have higher precedence than code spans. Also, email addresses are recognized and autolinked by the I'm making a PR for this |
this is fixed by #1337 |
Aw, that PR was not linked :( I have done a totally different solution, I'm not sure what you were going for with that PR. I'll just submit it and then you'll decide what to pick and/or integrate one with the other! |
… addresses in code spans (fixes markedjs#1218)
Test for markedjs#1218 & "marked" spec
… addresses in code spans (fixes markedjs#1218)
Marked version: 0.3.12 (OK) 0.3.14 (buggy)
used to render as
<code>
block:user@host
but now it's rendered as an e-mail link with literal
`
in it:`user@host`
The text was updated successfully, but these errors were encountered: