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
feat(guide): parse and serialize markdown headings #9598
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
…eat/guide/serialize-markdown-headings
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://discord-js-guide-git-feat-guideserialize-markd-d2b0a9-discordjs.vercel.app/guide/home/introduction |
Codecov Report
@@ Coverage Diff @@
## main #9598 +/- ##
==========================================
- Coverage 58.17% 58.00% -0.18%
==========================================
Files 227 228 +1
Lines 14891 14935 +44
Branches 1130 1131 +1
==========================================
Hits 8663 8663
- Misses 6188 6232 +44
Partials 40 40
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Please describe the changes this PR makes and why it should be merged:
This adds the logic (no rendering yet) for parsing and serializing MDX headings into a tree-like structure.
🤖 Generated by Copilot at c2c0b38
headings
field toContent
schema to store heading data from Markdown files (link, link, link)GithubSlugger
module to generate slugs from heading texts (link, link)~/util/heading-node
module to export interfaces and function for transforming heading data into a tree structure (link)serializeHeadings
function inPage
component to create heading nodes fromcontent.headings
(link, link)page.tsx
(link)