Changes in version 0.10 - When the output argument of mark() is a .pdf file, Markdown will be converted to a full .tex file instead of a LaTeX fragment before it is compiled to PDF. - Fixed a bug that sections in the appendix could not be cross-referenced. - Added a meta variable lang for HTML output, which is the language of the document (e.g., en-US for US English). This variable is used in the tag of the HTML output file. By default, the language is detected from the system locale, but you can also set it via the lang field under meta in YAML metadata, e.g., lang: en-GB for British English (thanks, @TimTaylor, #121). - Fixed a bug when embedding JS resources: previously from being present in the JS source, but the escaping was too general (e.g., to <\/script>. - For fuse_site(), the generated site menu now automatically includes landing pages for one-level subdirectories containing index.html (e.g., playground/index.html), so subdirectory index pages appear in the navigation. - Fixed a re-entrancy bug that chunk options fig.path and cache.path in nested fuse() calls caused overridden figure/cache files (thanks, @nanxstats, #127). - Fixed a bug that detect_pkg() doesn't work when R CMD check checks package vignettes. Changes in version 0.9 (2025-12-18) - Provided a new chunk option filter to filter the output elements via a custom function. This makes it possible to re-order output elements. As a result, text output and plots from a for-loop can be interleaved (thanks, @reedacartwright, #106). - The chunk option attr.source will default to .lang (where lang is the engine name) only when it is not provided, i.e., NULL. Previously the value .lang would still be used when attr.source has been provided. Now it's possible to completely override it, e.g., attr.source = 'language-r' as in #107 (thanks, @ThomasSoeiro). - The chunk option collapse = TRUE also applies to message blocks, including warnings, messages, and errors (thanks, @ThomasSoeiro, #108). - pkg_desc() gained a new argument type and the package description can be generated to either a table or a definition list now. - The embed_resources option was buggy for deferred JS resources. Previously they were moved to , but deferred scripts should be executed after the full DOM is ready, so they are moved before instead if they are to be embedded. - Fixed a bug in pkg_manual() that may lead to omission of certain items when building TOC. Changes in version 0.8 (2025-11-02) - Added a new chunk option fig.keep to select plots to be kept in a code chunk (thanks, @Gabrielforest, #99). See https://yihui.org/litedown/#sec:option-fig for documentation. - Improved support for LaTeX footnotes. The footnote identifier no longer has to be a number, and the footnote can include arbitrary elements (not necessarily a single paragraph). - The chunk option results = 'hide' will imply collapse = TRUE, i.e., when text output is hidden, the source blocks will be merged (thanks, @jangorecki, #87). - fuse(text = '# text') will be treated as Markdown input instead of R code input (thanks, @chuxinyuan, #102). - Fixed the bug that the chunk option fig.path does not work when it does not contain / (thanks, @J-Moravec, #88). - get_context('full_input') gives the full path to the input file of fuse() (thanks, @rikivillalba, #104). Changes in version 0.7 (2025-04-08) - pkg_manual() will exclude help pages with the keyword internal (thanks, @TimTaylor, #78). - pkg_news() will add links to Github users and issue numbers if the package is hosted on Github. - Allow , and . in superscripts and subscripts (thanks, @janlisec, #81). - Special characters in bibliography entries such as {\"u} can be correctly read now (thanks, @bastistician). - Fixed a bug that inline code expressions (`{lang} expr`) cannot be correctly located when the line has leading spaces that are not meaningful. - Deleted vignettes markdown-examples and markdown-output. They are rendered on the package site now: https://git.yihui.org/litedown/examples/test-options.html Changes in version 0.6 (2025-02-27) - Added a Markdown rendering option offline to download web resources when this option is set to true, so that the HTML output can be viewed offline (thanks, @TimTaylor, #73). See https://yihui.org/litedown/#sec:offline for more info. - Added a function get_context() to query the fuse() context such as the input file path or the output format (thanks, @MichaelChirico #67, @vincentarelbundock #70). - Added a function raw_text() to output raw text content in a code chunk (thanks, @vincentarelbundock, #69). - Dropped the chunk option ref.label and added a new chunk option fill, which is more general (ref.label = "LABEL" can be achieved by `