Modifying the AST and Rewriting the AST to Markdown #437
Unanswered
matttproud
asked this question in
Q&A
Replies: 1 comment
-
Would a text renderer work here? Though I think some information is lost during parsing (such as extra blank lines), so it wouldn't be exact. Personally, I'd like something lik |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
goldmark looks like a nice suite of functionality. I have been examining it, and I am wondering if there is any capability analogous to
package dst
's (a replacement for Go's ownpackage ast
) ability to dump out modified ASTs with all elements intact (example).Let's say that I wrote my own
parser.ASTTransformer
orast.Walker
that I used to modify the Markdown document. Does goldmark provide a way for me to re-emit the modified AST back to Markdown source (but reflecting the modifications to the AST that I made in the walker or transformer)?Many thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions