hugo-toha.github.io
hugo-toha.github.io copied to clipboard
Posts' Table of Contents dosen't work with .rmd files
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
.md file (same content as in the previous one)
btw Many thanks for the awesome theme!
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.