Coverts a markdown object (full ast or node) to HTML.

to_html(md, ...)

Arguments

md

Markdown object

...

Unused, for extensibility.

Value

Returns a character vector of HTML lines representing the markdown object.

Examples

md_file = system.file("examples/commonmark.md", package = "md4r")
md = parse_md(md_file)
cat(to_html(md), sep="\n")
#> <h2>
#> Try CommonMark
#> </h2>
#> <p>
#> You can try CommonMark here.  This dingus is powered by
#> <a href="https://github.com/commonmark/commonmark.js">commonmark.js</a>
#> , the
#> JavaScript reference implementation.
#> </p>
#> <ol>
#> <li>
#> item one
#> </li>
#> <li>
#> item two
#> <ul>
#> <li>
#> sublist
#> </li>
#> <li>
#> sublist
#> </li>
#> </ul>
#> </li>
#> </ol>