summaryrefslogtreecommitdiff
path: root/packages/markdown-support/src/rehype-expressions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/markdown-support/src/rehype-expressions.ts')
-rw-r--r--packages/markdown-support/src/rehype-expressions.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/markdown-support/src/rehype-expressions.ts b/packages/markdown-support/src/rehype-expressions.ts
index 2762f54fc..016d36aaf 100644
--- a/packages/markdown-support/src/rehype-expressions.ts
+++ b/packages/markdown-support/src/rehype-expressions.ts
@@ -1,12 +1,12 @@
-import { map } from 'unist-util-map'
+import { map } from 'unist-util-map';
export default function rehypeExpressions(): any {
- return function(node: any): 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.value}}` };
}
return child;
- })
- }
+ });
+ };
}