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

Posts' Table of Contents dosen't work with .rmd files #203

Open
StellAuror opened this issue Oct 29, 2022 · 1 comment
Open

Posts' Table of Contents dosen't work with .rmd files #203

StellAuror opened this issue Oct 29, 2022 · 1 comment

Comments

@StellAuror
Copy link

Hello, I struggle with posts' Table of Contents.

As long as I use the standard .md format, everything works perfectly. But, when the same file is saved as .Rmd (R markdown, R is a programming language) and then render it as an .html file, the table of contents stops working, ie it does not recognize the document headers.

.html file rendered from the .rmd

image

.md file (same content as in the previous one)

image

btw Many thanks for the awesome theme!

@StellAuror StellAuror changed the title Posts' Table of Contents works with .md files only Posts' Table of Contents dosen't work with .rmd files Oct 29, 2022
@hossainemruz
Copy link
Member

Hi @StellAuror, the Table Of Contents uses Hugo's .TableOfContents page variable. The TOC is generated by Hugo itself. I am suspecting Hugo is not generating it properly for .rmd files.

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