Skip to content

Parse settext headers with higher priority than linkdefs#769

Merged
Martin1887 merged 2 commits intopulldown-cmark:masterfrom
notriddle:notriddle/settext-linkdef-hybrids
Nov 1, 2023
Merged

Parse settext headers with higher priority than linkdefs#769
Martin1887 merged 2 commits intopulldown-cmark:masterfrom
notriddle:notriddle/settext-linkdef-hybrids

Conversation

@notriddle
Copy link
Collaborator

@notriddle notriddle commented Oct 31, 2023

Fixes #768

Consider this:

[First try
----------
Second try]: https://rust-lang.org

It's a real ambiguity of the CommonMark spec; I could not find anywhere that it said anything about whether link definitions or setext headers have higher binding power. But most other parsers do it the same way:

notriddle and others added 2 commits October 31, 2023 13:43
@Martin1887 Martin1887 merged commit 62f6672 into pulldown-cmark:master Nov 1, 2023
@notriddle notriddle deleted the notriddle/settext-linkdef-hybrids branch November 1, 2023 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fuzz results] link definition names are being parsed with higher priority than setext headers

2 participants