Reputation: 1437
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
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