Make YAML to be inserted at the beginning of the document exported to be rendered via quarto.

make_yaml(selected, doctype)

Arguments

selected

Tibble. Document for which the de YAML should be created.

doctype

Character. Whether the document is a "Note", "Page", "Slide", "Video", "Game", or "Case" (Questions have no YAML).

Value

YAML as a character vector.

Author

Nicolas Mangin