Skip to content

Commit

Permalink
Update packages/nextra/src/mdx-plugins/remark-headings.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri POSTOLOV committed Aug 23, 2023
1 parent 07fe8df commit ef12f69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nextra/src/mdx-plugins/remark-headings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const remarkHeadings: Plugin<[exportName?: string], Root> = (
delete node.data._mdxExplicitJsx
}
} else {
// If component name equals default export name from .md/.mdx import
const headingsName = PartialComponentToHeadingsName[nodeName]
if (headingsName) {
headingMeta.headings.push(headingsName)
Expand Down

0 comments on commit ef12f69

Please sign in to comment.