html_setup: Load js4shiny HTML assets and knitr dependencies

View source: R/deps.R

html_setupR Documentation

Load js4shiny HTML assets and knitr dependencies

Description

Overrides the JavaScript knitr engine, registers knitr output hooks, and declares the JS and CSS dependencies that are required to enable the literate JavaScript code chunks inside R Markdown formats that write to HTML.

Usage

html_setup(stylize = "none")

html_setup_blogdown(
  stylize = c("fonts", "variables", "table", "code", "utility")
)

Arguments

stylize

One of "none", "all", "fonts", "variables", "table", "utility", "code", "pandoc-line-numbers" to include the CSS styles developed for js4shiny.

Functions

  • html_setup_blogdown: A blogdown-specific HTML setup that includes styles for ⁠<pre>⁠ code blocks, tables, some utility functions, and the CSS variables declaring the js4shiny colors.

See Also

Other js4shiny HTML dependencies: html_dependency_js4shiny()


gadenbuie/js4shiny documentation built on March 25, 2024, 8:16 p.m.