Functions for creating ast nodes,
rmd_ast()
- Create an ast container of nodesrmd_yaml()
- Create a yaml nodermd_heading()
- Create a heading nodermd_code_blokc()
- Create a markdown code block nodermd_chunk()
- Create a chunk nodermd_raw_chunk()
- Create a raw chunk nodermd_fenced_div_open()
- Create a fenced div open nodermd_fenced_div_close()
- Create a fenced div close nodermd_markdown()
- Create a markdown container node ofrmd_markdown_line
srmd_markdown_line()
- Create a markdown line nodermd_inline_code()
- Create an inline code nodermd_shortcode()
- Create a shortcode node
Usage
rmd_ast(...)
rmd_yaml(...)
rmd_heading(name, level)
rmd_code_block(attr = "", code = character(), indent = "", n_ticks = 3L)
rmd_chunk(
name = NULL,
engine = "r",
options = list(),
yaml_options = list(),
code = character(),
indent = "",
n_ticks = 3L
)
rmd_raw_chunk(format, code = character(), indent = "", n_ticks = 3L)
rmd_fenced_div_open(attr = character())
rmd_fenced_div_close()
rmd_markdown(...)
rmd_markdown_line(...)
rmd_inline_code(engine = "", code = "")
rmd_shortcode(func, args = character())
Arguments
- ...
Elements within the node.
- name
Character. Heading or chunk name.
- level
Integer. Heading level (1-6).
- attr
Character. Attributes for code block or fenced div.
- code
Character. Code lines for code block or chunk.
- indent
Character. Indentation for code block or chunk.
- n_ticks
Integer. Number of backticks for code block or chunk.
- engine
Character. Language engine for chunk or inline code
- options
List. Chunk options.
- yaml_options
List. Chunk yaml options.
- format
Character. Format for raw chunk.
- func
Character. Shortcode function name.
- args
Character. Shortcode arguments.