Learn R Programming

gluedown (version 1.0.9)

md_paragraph: Markdown paragraphs breaks

Description

Take a character vector and return a glue vector of paragraphs separated by double newlines. This leaf block is rendered as distinct <p> HTML tags.

Usage

md_paragraph(...)

Value

A glue vector with elements of ... separated by two newlines.

Arguments

...

Any number of character vectors.

Details

A sequence of non-blank lines that cannot be interpreted as other kinds of blocks forms a paragraph. The contents of the paragraph are the result of parsing the paragraph’s raw content as inlines. The paragraph’s raw content is formed by concatenating the lines and removing initial and final whitespace... Paragraphs can contain multiple lines, but no blank lines.

See Also

Other leaf block functions: md_blank(), md_chunk(), md_fence(), md_heading(), md_indent(), md_label(), md_reference(), md_rule(), md_setext(), md_table()

Examples

Run this code
md_paragraph(stringr::sentences[1:3])

Run the code above in your browser using DataLab