rmdformats icon indicating copy to clipboard operation
rmdformats copied to clipboard

readthedown navigation panel does not work correctly

Open tfrank1971 opened this issue 8 months ago • 1 comments

I used the theme "readthedown" in R markdown with following YAML setup: output: rmdformats::readthedown: toc_depth: 3 self_contained: true code_folding: hide thumbnails: false lightbox: true gallery: true highlight: tango use_bookdown: true

The R script is very long (~4000 lines of code). As it grows and during repeated compilation steps I noticed that the collapsible navigation bar on the left panel does not work correctly anymore (from one moment to the other). That means only level 1 headers are shown, but the lower level headers are not opened. When I click on it, the next level (header 2 and 3) are not shown. I tried several "roll-backs", but the results is always the same. I use R 4.4.1 on linux, rmdformats 1.0.4, latest Edge browser on Windows 11 (browser cache always emptied).

tfrank1971 avatar Apr 04 '25 06:04 tfrank1971

Unfortunately I don't think the table of contents in readthedown will work well with a toc_depth > 2. Styling and navigation will not work correctly.

juba avatar Apr 10 '25 07:04 juba