View source: R/markdown_block.R
markdown_block | R Documentation |
Return a code block object that can be included in the pandoc parse tree
markdown_block(content, language, id = "", ...)
content |
a character vector containing the code |
language |
language of the code in the code block |
id |
optional id of the code block |
... |
additional arguments should be named. These are added to the markdown block as additional arguments. |
Returns a list
with the correct structure for a code block in
the pandoc parse tree.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.