diff options
author | 2022-05-24 22:03:29 +0000 | |
---|---|---|
committer | 2022-05-24 22:03:29 +0000 | |
commit | cb039219ef820d2f6f19df15a36860593cb608f1 (patch) | |
tree | af3c572d52bb7e259e774dc3e1ab5931f73c9ae2 /packages/markdown/remark/src/index.ts | |
parent | cfae9760b252052b6189e96398b819a4337634a8 (diff) | |
download | astro-cb039219ef820d2f6f19df15a36860593cb608f1.tar.gz astro-cb039219ef820d2f6f19df15a36860593cb608f1.tar.zst astro-cb039219ef820d2f6f19df15a36860593cb608f1.zip |
[ci] format
Diffstat (limited to 'packages/markdown/remark/src/index.ts')
-rw-r--r-- | packages/markdown/remark/src/index.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/markdown/remark/src/index.ts b/packages/markdown/remark/src/index.ts index d942bf7bf..5df5566a1 100644 --- a/packages/markdown/remark/src/index.ts +++ b/packages/markdown/remark/src/index.ts @@ -36,8 +36,15 @@ export async function renderMarkdown( content: string, opts: MarkdownRenderingOptions = {} ): Promise<MarkdownRenderingResult> { - let { fileURL, mode = 'mdx', syntaxHighlight = 'shiki', shikiConfig = {}, remarkPlugins = [], rehypePlugins = [] } = opts; - const input = new VFile({ value: content, path: fileURL }) + let { + fileURL, + mode = 'mdx', + syntaxHighlight = 'shiki', + shikiConfig = {}, + remarkPlugins = [], + rehypePlugins = [], + } = opts; + const input = new VFile({ value: content, path: fileURL }); const scopedClassName = opts.$?.scopedClassName; const isMDX = mode === 'mdx'; const { headers, rehypeCollectHeaders } = createCollectHeaders(); |