diff options
Diffstat (limited to 'packages/markdown-support')
| -rw-r--r-- | packages/markdown-support/src/rehype-collect-headers.ts | 2 | ||||
| -rw-r--r-- | packages/markdown-support/src/rehype-expressions.ts | 2 | 
2 files changed, 2 insertions, 2 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); diff --git a/packages/markdown-support/src/rehype-expressions.ts b/packages/markdown-support/src/rehype-expressions.ts index 016d36aaf..d296c2afe 100644 --- a/packages/markdown-support/src/rehype-expressions.ts +++ b/packages/markdown-support/src/rehype-expressions.ts @@ -4,7 +4,7 @@ export default function rehypeExpressions(): any {    return function (node: any): any {      return map(node, (child) => {        if (child.type === 'mdxTextExpression') { -        return { type: 'text', value: `{${child.value}}` }; +        return { type: 'text', value: `{${(child as any).value}}` };        }        return child;      }); | 
