-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Emphasis takes precedence over inline code span #75
Comments
This kinda sucks; due to the legacy of marked this isn’t really do-able currently. I’d love to make this happen but it will need a rewrite of the parsing algorithm; stepping away from regexes and to a real algorithmic tokeniser, e.g., like markdown-it 😦 |
I came across the test that freezes the wrong precedence of In Commonmark,
<a href="/url">the <code>]</code> character</a> |
Nice catch @eush77! In fact, I think all of the “pending” tests in mdast-html have to do with this (I wrote a bit about it here). I think the only way to fix this is by rewriting the engine to use code tokenisers in favour of regexes; it’ll take a while to rewrite everything though! |
Let’s track this in GH-306. |
Input:
Actual AST:
Expected AST:
Commonmark:
The text was updated successfully, but these errors were encountered: