Coverts a markdown object (full ast or node) to markdown text.
to_md(md, ...)
Markdown object
Unused, for extensibility.
Returns a character vector of markdown lines representing the markdown object.
md_file = system.file("examples/commonmark.md", package = "md4r")
md = parse_md(md_file)
cat(to_md(md), sep="\n")
#> ## Try CommonMark
#>
#> You can try CommonMark here. This dingus is powered by
#> [commonmark.js](<https://github.com/commonmark/commonmark.js>), the
#> JavaScript reference implementation.
#>
#> 1. item one
#> 2. item two
#> - sublist
#> - sublist