Learn R Programming

md4r (version 0.5.2.0)

to_md: Convert to markdown

Description

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

Usage

to_md(md, ...)

Value

Returns a character vector of markdown 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_md(md), sep="\n")

Run the code above in your browser using DataLab