Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generate table of contents dynamically (#3015)
Generating table of contents by statically analyzing MDX is incomplete in places where headings are rendered via JSX, so now heading componetns are registering themselves in the context, which is then used to generate the complete table of contents.
- Loading branch information
Showing
19 changed files
with
446 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
import "tailwindcss/dist/base.min.css"; | ||
|
||
import wrapWithProviders from "./wrap-with-providers.tsx"; | ||
|
||
export const wrapRootElement = wrapWithProviders; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import wrapWithProviders from "./wrap-with-providers.tsx"; | ||
|
||
export const wrapRootElement = wrapWithProviders; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.