aboutsummaryrefslogtreecommitdiff
path: root/packages/markdown-support/src/rehype-collect-headers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/markdown-support/src/rehype-collect-headers.ts')
-rw-r--r--packages/markdown-support/src/rehype-collect-headers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/markdown-support/src/rehype-collect-headers.ts b/packages/markdown-support/src/rehype-collect-headers.ts
index de9b78692..78774e494 100644
--- a/packages/markdown-support/src/rehype-collect-headers.ts
+++ b/packages/markdown-support/src/rehype-collect-headers.ts
@@ -16,7 +16,7 @@ export default function createCollectHeaders() {
let text = '';
visit(node, 'text', (child) => {
- text += child.value;
+ text += (child as any).value;
});
let slug = node.properties.id || slugger.slug(text);