I have a long word document that I would like to convert to a bs4 book with minimal manual editing.
I've come up with what I think is pretty reasonable for gitbook:
- Create an empty .rmd doc for gitbook
- Use pandoc to go from docx to markdown
- call the markdown file into the gitbook rmd file
- knit
This works pretty well (The word doc uses headers already) and the errors are minimal.
Howver, if I want to use bs4_book I believe I need to split the new .Rmd file into individual files for each "chapter." I there a way to automate this? For example, creating .Rmd files called 01-HEADER#1_text.Rmd, 02-HEADER#2.Rmd etc.. directly from the .md or .Rmd file?
thanks!