You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: NEWS.md
+2
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
- New option in `gitbook`'s font settings menu to control line spacing (thanks, @hayden-MB, #1479).
4
4
5
+
- New configuration setting `include_md` to control whether the input search includes `.md` source files in addition to `.Rmd` (thanks, @katrinabrock#1483, @kylelundstedt#956).
6
+
5
7
# CHANGES IN bookdown VERSION 0.41
6
8
7
9
- New `mathjax-config` option for `bs4_book` and `gitbook` to control MathJax config string (thanks, @bwu62, #1472). The option can be set either in the YAML metadata or as a variable in `pandoc_args`. Currently tested and supported settings:
Copy file name to clipboardexpand all lines: inst/examples/01-introduction.Rmd
+1
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,7 @@ rmd_files:
124
124
```
125
125
126
126
Although we have been talking about R Markdown files, the chapter files do not actually have to be R Markdown. They can be plain Markdown files (`.md`), and do not have to contain R code chunks at all. You can certainly use **bookdown** to compose novels or poems!
127
+
However, by default, only `.Rmd` files (but not `.md` files) are included in the automatic collection of files.
127
128
128
129
At the moment, the major output formats that you may use include `bookdown::pdf_book`, `bookdown::gitbook`, `bookdown::html_book`, and `bookdown::epub_book`. There is a `bookdown::render_book()`\index{bookdown::render\_book()} function similar to `rmarkdown::render()`, but it was designed to render _multiple_ Rmd documents into a book using the output format functions. You may either call this function from command line directly, or click the relevant buttons in the RStudio IDE. Here are some command-line examples:
Copy file name to clipboardexpand all lines: inst/examples/04-customization.Rmd
+1
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,7 @@ We have mentioned `rmd_files` in Section \@ref(usage), and there are more (optio
205
205
- `history`: similar to `edit`, a link to the edit/commit history of the current page.
206
206
- `view`: similar to `edit`, a link to source code of the current page.
207
207
- `rmd_subdir`: whether to search for book source Rmd files in subdirectories (by default, only the root directory is searched). This may be either a boolean (e.g. `true` will search for book source Rmd files in the project directory and all subdirectories) or list of paths if you want to search for book source Rmd files in a subset of subdirectories.
208
+
- `include_md`: include `.md` files in search for book source (by default only `.Rmd` files are included).
208
209
- `output_dir`: the output directory of the book (`_book` by default); this setting is read and used by `render_book()`.
209
210
- `clean`: a vector of files and directories to be cleaned by the `clean_book()` function.
0 commit comments