-
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
grammar for inline codes is not good #1052
Comments
Thanks for reporting, this was partially my mistake in #1013. Babelmark for reference. The fix you suggest brings us back before #1013 so it is not right. <p>``foo</p>
<p>foo``</p>
<p>`foo``</p>
<p><code>`foo</code></p> I'm adding this to the consolidating issue hoping that we'll conform with commonmark on codespans too. |
Reply to @Feder1co5oave I see the problem in #1030 . Actually my suggestion
is different from the one before #1030
I found that back references (such as For example, if Then I added I'm not very good at English, so I will try my best to explain if you don't understand what I want to say. |
Thanks, you've been very clear and detailed, I'll look into this! |
this seems to be fixed in the latest version of marked demo |
Expectation
should be
Result
marked returns
What was attempted
I edited marked.js:
code: /^(`+)(\s*)([\s\S]*?[^`]?)\2\1(?!`)/
withcode: /^(`+(?!`))([\s\S]*?[^`])\1(?!`)/
cap[3]
withcap[2]
then get
However it doesn't work well on the last one.
The text was updated successfully, but these errors were encountered: