|
2 | 2 | title: "litedown: R Markdown Reimagined" |
3 | 3 | author: "Yihui Xie" |
4 | 4 | date: "`{r} Sys.Date()`" |
| 5 | +bibliography: ["packages.bib"] |
5 | 6 | --- |
6 | 7 |
|
7 | 8 | ```{r, include = FALSE} |
8 | | -if (packageVersion('xfun') < '0.49.7') stop( |
9 | | - 'package versions too low; please install newer versions:\n', |
10 | | - "install.packages(c('litedown', 'xfun'), repos = 'https://yihui.r-universe.dev')" |
11 | | -) |
12 | | -
|
13 | 9 | options(width = 80) |
14 | 10 |
|
15 | 11 | # return an example file in fenced Div |
@@ -41,6 +37,8 @@ options(width = 80) |
41 | 37 | x2 = .ex(n, ext[2], ...) |
42 | 38 | xfun::fenced_div(c(x1, x2), '.flex-col') |
43 | 39 | } |
| 40 | +
|
| 41 | +xfun::pkg_bib(c('litedown', 'commonmark', 'xfun', 'rbibutils'), 'packages.bib') |
44 | 42 | ``` |
45 | 43 |
|
46 | 44 | ```{js, echo = FALSE, type = 'module'} |
@@ -152,16 +150,16 @@ just want to make the HTML world a little bit better. |
152 | 150 |
|
153 | 151 | ## Overview |
154 | 152 |
|
155 | | -The **litedown** package is an attempt to reimagine R Markdown with one primary |
156 | | -goal—do HTML, and do it well, with the minimalism principle. Before LaTeX fans |
157 | | -walk away in disappointment, let me quickly clarify that LaTeX output is also |
158 | | -supported, but please do not expect anything fancy before you learn to customize |
159 | | -LaTeX templates. Most other output formats are not supported. No Word, RTF, |
160 | | -PowerPoint, or EPUB. |
| 153 | +The **litedown** package [@R-litedown] is an attempt to reimagine R Markdown |
| 154 | +with one primary goal—do HTML, and do it well, with the minimalism principle. |
| 155 | +Before LaTeX fans walk away in disappointment, let me quickly clarify that LaTeX |
| 156 | +output is also supported, but please do not expect anything fancy before you |
| 157 | +learn to customize LaTeX templates. Most other output formats are not supported. |
| 158 | +No Word, RTF, PowerPoint, or EPUB. |
161 | 159 |
|
162 | 160 | R Markdown is rendered via `litedown::fuse()`, which is similar to |
163 | 161 | `rmarkdown::render()` and `knitr::knit()`. Markdown is rendered via |
164 | | -`litedown::mark()`, which uses **commonmark** instead of Pandoc. |
| 162 | +`litedown::mark()`, which uses **commonmark** [@R-commonmark] instead of Pandoc. |
165 | 163 |
|
166 | 164 | The **commonmark** package follows the GFM (GitHub Flavored Markdown) spec, |
167 | 165 | which can be seen as a subset of Pandoc's Markdown. Therefore the **litedown** |
@@ -355,7 +353,8 @@ JavaScript, yet it is quite flexible (@chp:widgets). |
355 | 353 | ### Small footprint |
356 | 354 |
|
357 | 355 | Almost everything in **litedown** was written from scratch. The package is very |
358 | | -lightweight, with only two R package dependencies: **commonmark** and **xfun**. |
| 356 | +lightweight, with only two R package dependencies: **commonmark** and **xfun** |
| 357 | +[@R-xfun]. |
359 | 358 |
|
360 | 359 | It is a deliberate design choice to keep this package lightweight, to make it |
361 | 360 | relatively easy to use and simple to maintain. The functions `mark()` and |
|
0 commit comments