mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Convert MarkdownDocument to plain text Markdown #288
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 @asbjornu on GitHub (Apr 25, 2019).
Given a successfully constructed
MarkdownDocument, how do I convert it to plain text Markdown code?@MihaZupan commented on GitHub (Apr 25, 2019):
You'd essentially be doing what
Markdown.Normalizedoes:https://github.com/lunet-io/markdig/blob/master/src/Markdig/Markdown.cs#L56-L61
Note that the
NormalizeRendererisn't complete, especially for extensions.@asbjornu commented on GitHub (Apr 25, 2019):
Thanks! This is related to #155 I suppose. I'll plow ahead and see where I end up.
@MihaZupan commented on GitHub (Apr 25, 2019):
Exactly
@asbjornu commented on GitHub (Apr 26, 2019):
As I show in #332, I'm using an extension for checklist support and it works just fine with
NormalizeRenderer. 🎉Thanks again, @MihaZupan!