Learn R Programming

md4r (version 0.5.2.0)

flags: Markdown parser flags

Description

The md4c library supports a number of markdown variants / options. The parsing of these is controlled by flags passed to the parser. The following functions provide commonly used utilities for these flags.

Usage

flags_available()

flags_describe()

flags_used(md)

Value

flags_available() returns a character vector of available flags accepted by parse_md().

flags_describe() returns a tibble with columns flag and description describing each flag.

flags_used() returns a character vector of flags used in a parsed markdown document.

Arguments

md

Markdown ast object

Examples

Run this code

flags_available()

flags_describe()

md_file = system.file("examples/commonmark.md", package = "md4r")
md = parse_md(md_file)
flags_used(md)

Run the code above in your browser using DataLab