typr_query | R Documentation |
Query within a Typst file
typr_query(
input = NULL,
selector = NULL,
typst_args = NULL,
as_json = !rlang::is_installed("jsonlite")
)
input |
a path to a |
selector |
a string to search for, e.g. a |
typst_args |
Additional arguments to pass to Typst. Can be listed with |
as_json |
if |
a length one character with json syntax if !as_json
, otherwise a list
tf <- fs::file_temp(ext = 'typ')
writeLines(text = '= test <lbl>\n', con = tf)
typr_query(input = tf, selector = '<lbl>')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.