diff options
author | 2021-07-07 20:10:09 +0000 | |
---|---|---|
committer | 2021-07-07 20:10:09 +0000 | |
commit | 1bbe98ae54eb6018184fdc3875fe689775510ad6 (patch) | |
tree | eb8500d84704793c0d5b711f2e8f1b3822a83532 /packages/markdown-support/src/rehype-expressions.ts | |
parent | 53fcae1a9a26e3e2e9d6aca7ec71acc13a3556ea (diff) | |
download | astro-1bbe98ae54eb6018184fdc3875fe689775510ad6.tar.gz astro-1bbe98ae54eb6018184fdc3875fe689775510ad6.tar.zst astro-1bbe98ae54eb6018184fdc3875fe689775510ad6.zip |
[ci] yarn format
Diffstat (limited to 'packages/markdown-support/src/rehype-expressions.ts')
-rw-r--r-- | packages/markdown-support/src/rehype-expressions.ts | 10 |
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; - }) - } + }); + }; } |