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
I didn't find anything in the documentation describing how to properly do this, and the only work around I found was to copy and paste the link function in rules_inline (
) and whenever false is returned when parseReference is true to put some custom logic to try to resolve the reference.
And then register this rule with:
Thanks for the request. There's no built-in callback (upstream markdown-it has none either), but you don't need to copy the link rule. Add a small inline rule before it that fills in missing references and lets the normal rule do the rest:
Activity
chrisjsewell commentedon Nov 10, 2026
Thanks for the request. There's no built-in callback (upstream markdown-it has none either), but you don't need to copy the link rule. Add a small inline rule before it that fills in missing references and lets the normal rule do the rest:
(Handle
[text][label]by reading the second label the same way.) Closing as answered; feel free to reopen if that doesn't fit.