litedown: A Lightweight Version of R Markdown

2026-10-24

Version
0.11.14
Depends
R (>= 3.2.0)
Imports
utils, xfun (>= 0.55)
License
MIT + file LICENSE
Links
Browse source code
Report a bug
VignetteBuilder
litedown
Author
Yihui Xie ORCID iD [aut, cre], Tim Taylor ORCID iD [ctb], John MacFarlane [cph], Jeroen Ooms [ctb, cph], GitHub, Inc. [cph]

CRAN release litedown on r-universe R-CMD-check Build site Codecov test coverage

litedown turns Markdown and R Markdown into HTML and LaTeX/PDF, with no knitr and no Pandoc. It imports only one R package, xfun, and renders Markdown with a bundled and patched copy of the cmark-gfm C library.

1 Installation

install.packages('litedown')

The development version is available from r-universe:

install.packages('litedown', repos = 'https://yihui.r-universe.dev')

2 A quick look

Save this as hello.Rmd:

---
title: Hello litedown
output: html
---

```{r}
x = 2
```

The area of a circle with radius `{r} x` is `{r} pi * x^2`.

Then render it:

litedown::fuse('hello.Rmd')  # hello.Rmd -> hello.html
litedown::roam()             # or preview and render in a browser

3 Main functions

Function What it does
fuse() executes code in an R Markdown document, then renders it via mark()
mark() renders Markdown to HTML, LaTeX, etc.
fiss() extracts code from a document (like knitr::purl())
roam() previews and renders documents in a browser
fuse_book(), fuse_site(), pkg_site() build books, websites, and package sites

If you do not compute in your documents, mark() alone is enough.

4 Learn more

Read the book, litedown: R Markdown Reimagined, which also covers differences from knitr. Browse examples of chunk options and engines.

5 Scope

We want to limit the scope of this package. Most planned features have been (re-)implemented so far, such as reports, slides, books, websites (including package sites), and paged HTML documents, etc. See the set \(R\) below:

$$\mathrm{litedown} = \min{\{R\}} + \{D_i\} - \{D_e\} + \{J\}$$

Please feel free to file feature requests anyway, but we may be a little conservative when considering them (we will take votes into consideration, so please upvote features you like).

6 License

The litedown package is licensed under MIT.

Appendix

To cite the package litedown in publications, please use:

Xie Y (2026). litedown: A Lightweight Version of R Markdown. R package version 0.11.14, https://github.com/yihui/litedown.

@Manual{,
  title = {litedown: A Lightweight Version of R Markdown},
  author = {Yihui Xie},
  year = {2026},
  note = {R package version 0.11.14},
  url = {https://github.com/yihui/litedown},
}