to_html: Convert to html

View source: R/to_html.R

to_htmlR Documentation

Convert to html

Description

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

Usage

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")


md4r documentation built on May 29, 2024, 1:35 a.m.