Returns the output format of the current rendering context. When called
inside a Quarto/knitr document, delegates to knitr::pandoc_to().
When called outside of Quarto (e.g. in an officer-based script), returns
"officer".
Value
A character string: "html", "docx", "typst", "officer",
or another format reported by knitr::pandoc_to().