gatsby-plugin-mdx v4 code in heading #36829
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The ToC gets generated here: gatsby/packages/gatsby-plugin-mdx/src/gatsby-node.ts Lines 224 to 274 in ab51cd4 So it uses https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-mdx/src/remark-infer-toc-meta.ts and https://github.com/syntax-tree/mdast-util-toc under the hood. If you have time you could check out its code to see where it drops that information (if it's intentional or accidental) My gut feeling would be that in e.g. gatsby/packages/gatsby-plugin-mdx/src/remark-infer-toc-meta.ts Lines 48 to 55 in ab51cd4 code
|
Beta Was this translation helpful? Give feedback.
The ToC gets generated here:
gatsby/packages/gatsby-plugin-mdx/src/gatsby-node.ts
Lines 224 to 274 in ab51cd4