Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix interactive toc #315

Open
3 of 4 tasks
abernier opened this issue Aug 30, 2024 · 1 comment
Open
3 of 4 tasks

fix interactive toc #315

abernier opened this issue Aug 30, 2024 · 1 comment

Comments

@abernier
Copy link
Member

abernier commented Aug 30, 2024

https://css-tricks.com/table-of-contents-with-intersectionobserver/

  • wrap any heading in-between content, into a <div>
    • use a rehype plugin for this: get inspiration from src/components/mdx/Code/rehypeCode.ts
    • maybe also src/components/mdx/Toc/rehypeToc.ts
  • uncomment/refactor code inside src/components/mdx/Toc/Toc.tsx, based on the the wrapper divs

https://codepen.io/hakimel/pen/BpKNPg

@abernier abernier changed the title fix interactive nav fix interactive toc Aug 30, 2024
@abernier
Copy link
Member Author

abernier commented Sep 6, 2024

started #320

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant