mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-08 21:37:02 +00:00
Feature-request: Transform relative file links #755
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 @Abrynos on GitHub (Oct 6, 2025).
Sometimes text is distributed among multiple markdown files, which refer to each other with links such as
[Configuration-section](./configuration.md).When transforming to HTML, it would be nice to link to the corresponding files (
./configuration.htmlin the example above).While I already have written a
RelativeFileLinkExtensionand included it in our project, I'd prefer to have it officially supported and would therefore like to create a merge-request for it. Would this be a welcome contribution, @xoofx ?Code from our project as follows:
@Abrynos commented on GitHub (Oct 7, 2025):
Also some feedback on the implementation would be appreciated, because I'm sure this is far from ideal 😅
@xoofx commented on GitHub (Oct 28, 2025):
Yes, this is what I do for example in a static website generator here but the resolution is specific to my case (e.g. central place to resolve all links...etc.)
But it could be of some use in simple scenarios. PR welcome. 🙂