srid / emanote

Emanate a structured view of your plain-text notes
https://emanote.srid.ca
Other
800 stars 71 forks source link

Render TOC without JavaScript #520

Open srid opened 6 months ago

srid commented 6 months ago

As for highlightToc, do we really need JavaScript? I see a NoJS solution here: https://codepen.io/davorsuljic/embed/vYgqKWe? (via the comments from https://css-tricks.com/sticky-table-of-contents-with-scrolling-active-states/ )

Originally posted by @srid in https://github.com/srid/emanote/issues/504#issuecomment-1937783917

TristanCacqueray commented 6 months ago

I get the appeal, but this css is really advanced, not sure what's the benefit at that point. If I understand correctly, each heading needs it's own css to match the relevant doc section.