-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
gfm parsing oddity with links in link text #156
Comments
Test of gfm behavior:
[hello](there) Here the inner link takes precedence. So, with |
This at least improves on #156. We still get a link within a link, which isn't right, but at least the link goes to the right place. Cf. jgm/pandoc#10333.
There are two separate issues here:
With 7950d58 I have fixed (2). (1) remains, but it isn't as serious as problem; I believe browsers will still display this as a single link. It is difficult to see how to fix (1), given the architecture of this project. We would need to disable the autolink parser when parsing a link label. But we don't actually know if it's a link label (as opposed to, say, an image label or a span) until after it has been parsed (when we get to the |
Explain the problem.
In gfm, links in link text should not be parsed.
Input:
Actual output:
Expected output:
Try pandoc!
The bug is in the
autolink_bare_uris
extension:Pandoc version?
pandoc 3.3 (the latest version)
The text was updated successfully, but these errors were encountered: