Fix summary.results
chunk option not working as expected (#87)
Changed querySelector in highlightToC.js
so that ToC can be querried regardless of --id-prefix
is given to Pandoc (#85).
Introduce SASS to unify and minify CSS files. Current implementation do not include options for customizations.
Also, the sakura and water CSS frameworks are updated to the latest versions.
At the same time, the updated water CSS framework allows customizations via CSS variables.
See files under inst/frameworks/water
for available variables (#84).
mini_document
gains "katex_serverside"
as a new oprion for the katex
parameter.
"katex_serverside"
renders math well on shiny-based runtimes, too.
Note that this feature may change in a later version in order to incorporate the generalized feature from rstudio/rmarkdown#1940 (#81, #88).
Document how to use _output.yml
in package vignettes (#80).
Tabsets allow markups within tabmenus. The markups inherits from the content of corresponding headings (#78).
Tabsets can activate nested tab of a selection on hashChange
or load
(#76, #77).
Tabset determines initially active tab based on location.hash
(#75).
Fix tabset should not prevent rendering HTML widgets. This change let tabsets be built on load instead of DOMContentLoaded (#74).
Fix TOC highlighting doesn't work with non-ASCII headings (#62)
Support css framework-less minimalistic output with minidown(framework = "none")
or NULL
. Note that this style also omits the tooltip feature (#64, #65, #67).
The tabset feature of mini_document
allows which tab is open by default.
The syntax is same as the rmarkdown::html_document
, i.e. add .active
class to the header to be open by default (#52).
The code_folding
feature triggers a chunk hook by the chunk option minidown_hook
instead of source
. This avoids conflict with user settings (#57).
Fix mini_document
should not run cat()
in post processor (#51).
Fix CRAN policy violation caused by intermediate files from rmarkdown::render (#53).
mini_document
in favor of the new tabset feature (#31).mini_document
experimentally gains the toc_highlight
argument with default value FALSE
, which highlights the floating table of contents according to the browser's viewport. This feature requires toc = TRUE
and toc_float = TRUE
(#26).mini_document
experimentally gains the tabset
argument with default value FALSE
, which converts the sections to tabs if they belong to the tabset
-class section just like rmarkdown::html_document
. The major difference from rmarkdown::html_document
is that the names of tabs appear in table of contents, and are accessible by URL. (#27).section_divs
argument to the mini_document
function. The default value is TRUE
. It must be TRUE
when enabling the tabset feature (#29).mini_document
's tabset, browser's URL is updated so that users can easily share the URL of the tab with others (#30).minidown::mini_document
from the menu of RStudio (File -> New File -> R Markdown... -> From Template) (#42).mini_document
no more generates invalid HTML by the results_folding
feature, and removes the results_folding
section when no output is made (#49).toc_highlight
and tabset
arguments of mini_document
(#28).mini_document(framework = "all")
as a choice. Note that this option is intended for internal use only. By setting this and self_contained = FALSE
, the document adds all the stylesheets as its dependencies. Also, a meta
element will be inserted to header, which tells the version of minidown package that builds the document (#35).NULL
as their default values, which is consistent with rmarkdown::html_document()
. The previous implementation required the default values be blank string "" in order to trigger the hooks.collapse
option gains priority to the code folding feature for outputs, messages, warnings, and errors. In the future, the internal tricks will be removed by reflecting the upcoming knitr 1.31 (#22, #24).check_pandoc_version()
warned even if systems have Pandoc >= 2.7.2 (thanks, @eddelbuettel, #19).mini_document()
adds results_folding
option to fold entire results including figures and tables.mini_document()
adds code_download
optiondownload_rmd_button()
so that users can place a download button anywhere
in the document.mini_document()
warns if Pandoc is older than expected. Especially, if Pandoc < 2.0, --lua-filters
pandoc argument is omitted.include-before
and include-after
are wrapped by <main>
element. Accordingly, mini_document(toc_float = TRUE)
applies CSS Grid Layout on <main>
element and its contents. In this way, users can safely include additional contents.mini_document(code_folding = TRUE)
, the max-width of body become 900px when code_folding = FALSE
self_contained: false
not working properlytoc_float
-related CSS if the toc
option is FALSE
(#15).