Learn R Programming

md4r (version 0.5.2.0)

to_html: Convert to html

Description

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

Usage

to_html(md, ...)

Value

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

Arguments

md

Markdown object

...

Unused, for extensibility.

Examples

Run this code
md_file = system.file("examples/commonmark.md", package = "md4r")
md = parse_md(md_file)
cat(to_html(md), sep="\n")

Run the code above in your browser using DataLab