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

toc: true (or toc: yes) in .Rmd YAML header with type: docs does not result in TOC / menu #1155

Closed
falkcarl opened this issue Jun 24, 2019 · 2 comments

Comments

@falkcarl
Copy link

I instead end up with a strange <div id="TOC">true</div> tag in the page, and none of the headings show up in the TOC on the right-hand side.

Works fine with .md, so I'd suppose it's an .Rmd thing.

Site not live yet, still in development: https://github.com/falkcarl/website.git
Tutorials -> Mediation

@falkcarl
Copy link
Author

Might have figured it out, but for future people who try the same thing... If this is a floating toc, it might not be supported yet by blogdown: https://bookdown.org/yihui/blogdown/rmd-website.html

A toc can show up in the rendered page, but I was missing a bit in the yaml header having to do with output: and blogdown::html_page...
rstudio/blogdown#58

@nick-zhy
Copy link

nick-zhy commented Mar 4, 2021

I also meet this problem, .rmd has no toc sidebar while .md has.
How did you work it out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants