mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-12 05:44:48 +00:00
Does it support document composition? #532
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 @UnnecessaryPunctuation on GitHub (Apr 29, 2022).
Does MarkDig supports document composition?
Where some Link to md document get included in the rendered document?
Given 2 documents like :
Document_1.md
Here indroduction have a link for composition
[foo](Import:link/introduction.md).Introduction.md
The rendered Md will be : introduction md got inserted in the base document.
@xoofx commented on GitHub (Apr 29, 2022):
No (Similar question: #618 )
But you can do it by parsing to a SyntaxTree, inspect the links (e.g via
doc.Descendants<LinkInline>()), do the Markdown.Parsing on the reference link, copy the content of the parse into the other syntax tree and render from it.