emanote icon indicating copy to clipboard operation
emanote copied to clipboard

Render TOC without JavaScript

Open srid opened this issue 1 year ago • 1 comments

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

srid avatar Mar 05 '24 21:03 srid

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.

TristanCacqueray avatar Mar 05 '24 21:03 TristanCacqueray