shortcode_utils | R Documentation |
Functions for detecting and extracting shortcodes from AST nodes after the initial parsing phase.
rmd_has_shortcode(x, func_name = NULL)
rmd_extract_shortcodes(x, flatten = FALSE)
x |
An AST node, list of nodes, or character vector |
func_name |
character vector, optional glob patterns for matching shortcode function names. If NULL (default), matches any shortcode. |
flatten |
Return a flat list shortcodes if |
rmd_has_shortcode()
: logical vector indicating which nodes contain shortcodes
rmd_extract_shortcodes()
: list of shortcode objects found in the content
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.