-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Is there an easy way to convert a MarkdownAST tree back to the markdown string it represents? I managed to do it via conversion back to the stdlib-Markdown:
julia> using MarkdownAST: @ast, Document, Heading, Paragraph
julia> using Markdown: MD
julia> md = @ast Document() do
Heading(1) do
"Top-level heading"
end
Paragraph() do
"Some paragraph text"
end
end
julia> print(string(convert(MD, md)))
# Top-level heading
Some paragraph text
It would nice if string(md) or something like that could work directly.
Metadata
Metadata
Assignees
Labels
No labels