diff options
| author | 2022-07-20 18:16:33 +0000 | |
|---|---|---|
| committer | 2022-07-20 18:16:33 +0000 | |
| commit | 74b0099cd1d9bbfd272594aff60cf64e3f976f49 (patch) | |
| tree | 50c2ecdb843d5f2ecc4dc91fbdafd96638128bab /packages/integrations/mdx/src/index.ts | |
| parent | 19433eb4a4441522f68492ca914ad2ab4f061343 (diff) | |
| download | astro-74b0099cd1d9bbfd272594aff60cf64e3f976f49.tar.gz astro-74b0099cd1d9bbfd272594aff60cf64e3f976f49.tar.zst astro-74b0099cd1d9bbfd272594aff60cf64e3f976f49.zip | |
[ci] format
Diffstat (limited to 'packages/integrations/mdx/src/index.ts')
| -rw-r--r-- | packages/integrations/mdx/src/index.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/integrations/mdx/src/index.ts b/packages/integrations/mdx/src/index.ts index af63c4ad2..d2525b6e9 100644 --- a/packages/integrations/mdx/src/index.ts +++ b/packages/integrations/mdx/src/index.ts @@ -10,11 +10,14 @@ type WithExtends<T> = T | { extends: T }; type MdxOptions = { remarkPlugins?: WithExtends<MdxRollupPluginOptions['remarkPlugins']>; rehypePlugins?: WithExtends<MdxRollupPluginOptions['rehypePlugins']>; -} +}; const DEFAULT_REMARK_PLUGINS = [remarkGfm, remarkSmartypants]; -function handleExtends<T>(config: WithExtends<T[] | undefined>, defaults: T[] = []): T[] | undefined { +function handleExtends<T>( + config: WithExtends<T[] | undefined>, + defaults: T[] = [] +): T[] | undefined { if (Array.isArray(config)) return config; return [...defaults, ...(config?.extends ?? [])]; |
