pandoc_header | R Documentation |
Allows programmatic creation of a Pandoc ATX-style header with attributes. The currently supported set of Pandoc header attributes is: explicit identifier, numbered-unnumbered, listed-unlisted.
pandoc_header(text, level = 1, identifier = NA, number = TRUE, list = TRUE)
text |
character; Text of the header. |
level |
integer; Level of the header. |
identifier |
character; Text used for specifying an explicit anchor link. |
number |
logical; Should the header be numbered or unnumbered? Default to TRUE (numbered). |
list |
logical; Should heading be included in the table of contents? Default to TRUE (listed). |
['pandoc' extension-header_attributes](https://pandoc.org/MANUAL.html#extension-header_attributes)
None (invisible NULL). Returns the Pandoc ATX-style header using the 'cat' function.
pandoc_header("TR-001", 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.