You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What operating system and processor architecture are you using? :
macos arm
What did you do? :
I tried to implement a custom extension to parse syntax such as [^1^] . If we try to parse it as a link, since it has neither a link destination, nor a matching link reference definition, it should fail.
What did you expect to see? :
With the correct priority value set, the custom parser should be able to continue to try parsing on cases where links fail to resolve.
What did you see instead? #:
The custom parser won't work with a priority lower than the link parser, where the failed content is appended as text nodes or segments by the link parser.
Did you confirm your output is different from CommonMark online demo or other official renderer correspond with an extension?:
Can't answer since it's about a custom extension's behaviour issue.
The root issue seems to be that the link parser consumes content before ] character and output a separate node, which doesn't allow the parser's "revert to original position" behavior to work when the link fails to resolve later. And there is a related issue #132