md_quote | R Documentation |
Take a character vector and prepend each element in a greater-than symbol to
create a glue vector of block quote markdown text. This inline is rendered as
a <blockquote>
HTML tag.
md_quote(x)
x |
The character vector of quotes. |
A block quote marker consists of 0-3 spaces of initial indent, plus (a) the
character >
together with a following space, or (b) a single character >
not followed by a space.
The following rules define block quotes:
Basic case. If a string of lines Ls constitute a sequence of blocks Bs, then the result of prepending a block quote marker to the beginning of each line in Ls is a block quote containing Bs.
Laziness. If a string of lines Ls constitute a block quote with contents Bs, then the result of deleting the initial block quote marker from one or more lines in which the next non-whitespace character after the block quote marker is paragraph continuation text is a block quote with Bs as its content. Paragraph continuation text is text that will be parsed as part of the content of a paragraph, but does not occur at the beginning of the paragraph.
Consecutiveness. A document cannot contain two block quotes in a row unless there is a blank line between them.
Nothing else counts as a block quote.
A character vector with a greater-than symbol (>
) prepended to each
element.
Other container block functions:
md_bullet()
,
md_list()
,
md_order()
,
md_task()
md_quote("Give me liberty, or give me death!")
md_quote(stringr::sentences[1:3])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.