1
votes

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?

1

1 Answers

1
votes

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