Adds CSS extras to your slides. You can select which extras you wish to add to your slides.
use_extra_styles(
hover_code_line = TRUE,
mute_unhighlighted_code = TRUE,
bundle_id = NULL
)html_dependency_extra_styles(
hover_code_line = TRUE,
mute_unhighlighted_code = TRUE,
bundle_id = NULL
)
An htmltools::htmlDependency() with the selected additional styles.
Adds a hover effect for code chunks in your slides. Adds a floating pointer to the hovered line and makes the line bold.
On code chunks with highlights (added with
line-ending #<< comments or starting with *), non-highlighted lines
are muted and the highlighted line is full opacity.
Make the CSS bundle unique. Use this if your slides share a common resource directory and you want to include different CSS extras in different slides.
use_extra_styles(): Add the extra CSS styles to your slides
html_dependency_extra_styles(): Returns an htmltools::htmlDependency() with the
extra styles dependencies. Most users will want to use use_extra_styles().