mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
In-fly shortcut reference links #609
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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.