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

Extract table of contents from MDX and add basic TableOfContents component #52

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

bensmithett
Copy link
Owner

  • Add @stefanprobst/rehype-extract-toc Rehype plugin and configure in Vite config
  • Update entry-server.jsx to pass extracted tableOfContents data as props to Layout and Page components
  • Add a very basic <TableOfContents> component & stories

@bensmithett bensmithett merged commit 8c3fc25 into main Aug 23, 2022
@bensmithett bensmithett deleted the table-of-contents branch August 23, 2022 23:09
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

Successfully merging this pull request may close these issues.

1 participant