In-fly shortcut reference links #609

Closed
opened 2026-01-29 14:41:04 +00:00 by claunia · 1 comment
Owner

Originally created by @hydroper on GitHub (Jun 30, 2023).

I need to support [q.b.f] links for my language doc comments that refer to lexically-visible items.

I think that modifying LinkInlineParser.ProcessLinkReference should do it, passing some processor function to the pipeline that returns an URL string or null in case none was found. Could you add something like this to Markdig?

Originally created by @hydroper on GitHub (Jun 30, 2023). I need to support `[q.b.f]` links for my language doc comments that refer to lexically-visible items. I think that modifying [LinkInlineParser.ProcessLinkReference](https://github.com/xoofx/markdig/blob/b7cb169fd3a924e1e0d4e2e487a22c51caaedd10/src/Markdig/Parsers/Inlines/LinkInlineParser.cs#L119) should do it, passing some processor function to the pipeline that returns an URL string or null in case none was found. Could you add something like this to Markdig?
claunia added the question label 2026-01-29 14:41:04 +00:00
Author
Owner

@xoofx commented on GitHub (Jul 8, 2023):

You should probably instead use a post processing pass, like described here via markdownObject.Descendants<LinkInline>(). That won't require to modify Markdig and you can get this up and running with just a few lines of code.

@xoofx commented on GitHub (Jul 8, 2023): You should probably instead use a post processing pass, like described [here](https://github.com/xoofx/markdig/issues/577#issuecomment-984737406) via `markdownObject.Descendants<LinkInline>()`. That won't require to modify Markdig and you can get this up and running with just a few lines of code.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#609