Skip to content
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

Enable toc-title in default.html #1771

Merged
merged 4 commits into from
Feb 24, 2020
Merged

Enable toc-title in default.html #1771

merged 4 commits into from
Feb 24, 2020

Conversation

atusy
Copy link
Contributor

@atusy atusy commented Feb 12, 2020

Recent pandoc has an option toc-title.
This PR updates default.html to enable the option.
It works bot for toc_float as well.

For the consistency with other parameters, maybe it is a choice to add toc_title as a parameter of html_document.
If so, we should also consider adding the parameter to other output formats (e.g., word_document)

---
output:
  html_document:
    toc: true
    toc_float: true
toc-title: TOC
---

# foo

# bar

Copy link
Member

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

inst/rmd/h/default.html Outdated Show resolved Hide resolved
@yihui yihui merged commit 30199c3 into rstudio:master Feb 24, 2020
sthagen added a commit to sthagen/rstudio-rmarkdown that referenced this pull request Feb 25, 2020
Enable toc-title in default.html (rstudio#1771)
@atusy atusy deleted the toc-title branch February 27, 2020 13:23
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants