-
Notifications
You must be signed in to change notification settings - Fork 1.3k
add number_sections argument to markdown_document2 (closes #756) #938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
yihui
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atusy Thanks!
@cderv Feel free to merge this one after rstudio/rmarkdown#1879 is merged.
|
LGTM. Only one think: This feature relies on newer rmarkdown. So I did this 7f5af9c which is what to do in my experience. And we don't see this because ... we don't correctly test IMO. Once again, I think we should add test each time we add something. For now, I don't think the current test suite in bookdown allow to easily add test for this, so I'll do it later. |
|
It is not a perfect way to do it but I added a quick test because that is better to have one. |
yihui
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@cderv Thanks for changes! |
|
Thanks a lot @atusy ! |
Merge remote-tracking branch 'rstudio/master' into master # By Yihui Xie (4) and others # Via Yihui Xie * rstudio/master: the filenames use the separator - instead of _ with a4c97d8, when rendering multiple output formats, each format is rendered in a new session, so we no longer need clean_envir = TRUE Add a precision that `number_sections` default to TRUE and this will change outputs add number_sections argument to markdown_document2 (closes rstudio#756) (rstudio#938) fix rstudio#932: deprecate the clean_envir argument of render_book(), and use xfun::Rscript_call() to render multiple output formats (with each format in a new R session, so the formats aren rendered independently) make 'word' an alias of 'docx' in _bookdown.yml: https://stackoverflow.com/q/63678601/559676 Correctly encode twitter sharing url (rstudio#935) # Conflicts: # R/render.R
Please merge after rstudio/rmarkdown#1879
This PR adds number_sections argument to
markdown_document2and its family (e.g.,word_document2).I set
TRUEas a default value to be consistent with other formats (e.g.,html_document2).However, this may not be a good idea in case users' Rmd files manually numbered sections...