user2987808
user2987808

Reputation: 1437

bookdown extensions in rmarkdown notebook

I would like to use some of the bookdown extensions while using html_notebook as my output format. E.g. this works:

---
output: bookdown::html_document2
---

```{theorem}
My proof here.
\```
knitr::knit("test.rmd", "test.html")

but this does not:

---
output: html_notebook
---

```{theorem}
My proof here.
\```
knitr::knit("test.rmd", "test.html")

Is there a way to use these extensions in rmarkdown notebooks?

Upvotes: 1

Views: 143

Answers (1)

J_F
J_F

Reputation: 10352

You can use the following output definition:

output:  
  bookdown::html_document2:
    base_format: rmarkdown::html_notebook

The manual for this feature can be found here: https://bookdown.org/yihui/bookdown/a-single-document.html

Upvotes: 1

Related Questions