Marked version: master
Fixes redos when code blocks are in square brackets that are not links.
In most cases, this should be a different person than the contributor.
The text was updated successfully, but these errors were encountered:
I tried a different approach but this seems better! It's far from perfect though. I think this issue is inherent in the way links and code spans bind.
So, for example:
[foo`](url)` <-- this is not a link [`foo]`](url) <-- neither is this [foo`](url) <-- but this is [foo`](url)`` code `` <-- and this too. [foo`](url)``code` <-- these are just two code spans sitting back-to-back
Whenever we try to match a link, if we find a
I think we should consider trying to resemble the codespan matching regex to avoid backtracking too much. Something along the lines of
If you want to merge this fix in the mean time, that's fine too!