Learn R Programming

gluedown (version 1.0.2)

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(...)

Arguments

...

Any number of character vectors.

Value

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

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<U+2019>s raw content as inlines. The paragraph<U+2019>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_reference(), md_rule(), md_setext(), md_table()

Examples

Run this code
# NOT RUN {
md_paragraph(stringr::sentences[1:3])
# }

Run the code above in your browser using DataLab