powered by
Detects whether the current RMarkdown document is being rendered to HTML format (html_document, bookdown, etc.) vs non-HTML formats (pdf, epub, etc.)
is_html_output()
TRUE if rendering to HTML, FALSE otherwise