Question: Is it possible to get Updated Markdown text from MarkdownDocument? #200

Open
opened 2026-01-29 14:30:15 +00:00 by claunia · 0 comments
Owner

Originally created by @RickStrahl on GitHub (Apr 21, 2018).

I see that I can render a syntax tree to HTML, but diggning throgh the code I'm not seeing if there's a way to get Markdown back out after making changes to the sytnax tree.

Scenario:

I'm basically looking through a Markdown document and need to fix up a few links and images - so I iterate through the document and make changes to the inlines to fix up the links/images on MarkdownDocument. Parsing and updating works beautifully.

But I can't seem to find a way to now get back Markdown text from this. Should this be possible or am I just missing it?

Originally created by @RickStrahl on GitHub (Apr 21, 2018). I see that I can render a syntax tree to HTML, but diggning throgh the code I'm not seeing if there's a way to get Markdown back out after making changes to the sytnax tree. Scenario: I'm basically looking through a Markdown document and need to fix up a few links and images - so I iterate through the document and make changes to the inlines to fix up the links/images on MarkdownDocument. Parsing and updating works beautifully. But I can't seem to find a way to now get back Markdown text from this. Should this be possible or am I just missing it?
claunia added the question label 2026-01-29 14:30:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#200