diff options
Diffstat (limited to 'packages/markdown-support/src/rehype-expressions.ts')
-rw-r--r-- | packages/markdown-support/src/rehype-expressions.ts | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/packages/markdown-support/src/rehype-expressions.ts b/packages/markdown-support/src/rehype-expressions.ts deleted file mode 100644 index d296c2afe..000000000 --- a/packages/markdown-support/src/rehype-expressions.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { map } from 'unist-util-map'; - -export default function rehypeExpressions(): any { - return function (node: any): any { - return map(node, (child) => { - if (child.type === 'mdxTextExpression') { - return { type: 'text', value: `{${(child as any).value}}` }; - } - return child; - }); - }; -} |