diff options
Diffstat (limited to 'packages/markdown/remark/src/rehype-collect-headings.ts')
-rw-r--r-- | packages/markdown/remark/src/rehype-collect-headings.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/markdown/remark/src/rehype-collect-headings.ts b/packages/markdown/remark/src/rehype-collect-headings.ts index 3bff443e2..05afae1ba 100644 --- a/packages/markdown/remark/src/rehype-collect-headings.ts +++ b/packages/markdown/remark/src/rehype-collect-headings.ts @@ -97,7 +97,7 @@ function getMdxFrontmatterVariablePath(node: MdxTextExpression): string[] | Erro expressionPath.push( expression.property.type === 'Literal' ? String(expression.property.value) - : expression.property.name + : expression.property.name, ); expression = expression.object; |