You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for creating this theme. It's simple and works well to my needs. However, I'm having an issue with TOC and Rmd files. I don't have any expriences in web development, so bear with me while I try to explain this:
I'm using Rmd files to compile new posts, but the posts are not displaying the floating TOC correctly: only TOC title are displayed (my post: https://truonghm.github.io/).
I have done my own researches and look at theme source files, and here are my findings:
TOC being included is determined in the file _default/single.html
The HTML output of normal Markdown file has its headings in the following format:
<h3id="this-is-a-heading">This is a heading</h3>
While the HTML output of R Markdown file has its headings in a different format:
<divid="this-is-a-heading" class="section level3 unnumbered"><h3>This is a heading</h3>
And as such it looks like the TOC engine doesn't recognize headings from Rmd files to build TOC.
I'm thinking of 2 solutions to this problem:
Change the TOC engine (I haven't figured out its location yet) so that it also recognize a different heading pattern from Rmd
Include some code in the Rmd files so that the headings are produced correctly
I don't have much knowledge regarding HTML/CSS/JS, so it would be a great if you can provide some help.
Thank you again for building the theme!
Edit: This is also the first time I'm submitting an issue on GitHub, and I think the "bug" label does not apply correctly here... Is there any way I can edit this?
The text was updated successfully, but these errors were encountered:
Hi,
Thank you for creating this theme. It's simple and works well to my needs. However, I'm having an issue with TOC and Rmd files. I don't have any expriences in web development, so bear with me while I try to explain this:
I'm using Rmd files to compile new posts, but the posts are not displaying the floating TOC correctly: only TOC title are displayed (my post: https://truonghm.github.io/).
I have done my own researches and look at theme source files, and here are my findings:
TOC being included is determined in the file _default/single.html
The HTML output of normal Markdown file has its headings in the following format:
And as such it looks like the TOC engine doesn't recognize headings from Rmd files to build TOC.
I'm thinking of 2 solutions to this problem:
Change the TOC engine (I haven't figured out its location yet) so that it also recognize a different heading pattern from Rmd
Include some code in the Rmd files so that the headings are produced correctly
I don't have much knowledge regarding HTML/CSS/JS, so it would be a great if you can provide some help.
Thank you again for building the theme!
Edit: This is also the first time I'm submitting an issue on GitHub, and I think the "bug" label does not apply correctly here... Is there any way I can edit this?
The text was updated successfully, but these errors were encountered: