View source: R/utils-extract-alt-text-knitr.R
extract_alt_text | R Documentation |
(ref:variable-alt)
found in any rmd
fileExtract contents of text found in a (ref:variable-alt)
found in any rmd
file
extract_alt_text(inp_str)
inp_str |
The string to match, in the format |
Starts by parsing the _bookdown.yml
file to extract the names of all
uncommented rmd files in the current build.
Searches all those files for any lines starting with (ref:variable-alt)
.
Preceding spaces are ignored.
Extracts all the text found for the label given by inp_str
, and
returns the description found for it (the actual alternative text)
The text found for the label given by inp_str
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.