Skip to content

fix interactive toc #315

Open
Open
@abernier

Description

@abernier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions