-
-
Notifications
You must be signed in to change notification settings - Fork 980
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
Suggestion: drop the smart parameter from output formats #1774
Comments
This can be a breaking change, but the fewer arguments we have to maintain, the better. So I just removed it. I think I'll need to tweak some functions to add the BTW, this may also affect Pandoc 1.x users. I can't say for sure, but Pandoc 1.x probably didn't enable the smart option by default (and one needs to specify |
only kept the argument of ioslides_presentation, because its lua filter still needs this option
only kept the argument of ioslides_presentation, because its lua filter still needs this option
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
The output formats have the
smart
parameter (e.g.,html_document
).This parameter is passed to
smart_extension
and adds+smart
whenTRUE
and adds nothing whenFALSE
.rmarkdown/R/output_format.R
Lines 349 to 351 in 43def55
However, the
smart
extension is enabled by default in the Pandoc's markdown.https://github.com/jgm/pandoc/blob/9feefa39319358acc84811e6017aeea60f9140c3/MANUAL.txt#L2627-L2628
This means, the
smart
extension is enabled regardless of thesmart
parameter (i.e.,html_document(smart = TRUE)
andhtml_document(smart = FALSE)
cause the same result).Thus, I suggest to drop smart parameter from the output formats.
By doing this, the user-specified
smart
parameter will be silently ignored as ellipsis.If users really have to toggle the
smart
extension, they can do so via themd_extension
parameter (i.e.,md_extension = "-smart"
disables the smart extension).Currently, users have to specify both
smart=FALSE
andmd_extension="-smart"
to disable thesmart
extension.By filing an issue to this repo, I promise that
xfun::session_info('rmarkdown')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rmarkdown')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: