diff options
author | 2022-12-22 15:40:34 +0000 | |
---|---|---|
committer | 2022-12-22 15:40:34 +0000 | |
commit | 813576b39a01ed64decf5d4c97205c2a02ae492f (patch) | |
tree | dfacde3e0f1b72dc322913c3ac07d60650aafff8 /packages/integrations/mdx/src/plugins.ts | |
parent | 853081d1c857d8ad8a9634c37ed8fd123d32d241 (diff) | |
download | astro-813576b39a01ed64decf5d4c97205c2a02ae492f.tar.gz astro-813576b39a01ed64decf5d4c97205c2a02ae492f.tar.zst astro-813576b39a01ed64decf5d4c97205c2a02ae492f.zip |
[ci] format
Diffstat (limited to 'packages/integrations/mdx/src/plugins.ts')
-rw-r--r-- | packages/integrations/mdx/src/plugins.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/integrations/mdx/src/plugins.ts b/packages/integrations/mdx/src/plugins.ts index a93db383b..c823c6e7c 100644 --- a/packages/integrations/mdx/src/plugins.ts +++ b/packages/integrations/mdx/src/plugins.ts @@ -1,24 +1,24 @@ import { rehypeHeadingIds } from '@astrojs/markdown-remark'; -import type { Image } from 'mdast'; import { nodeTypes } from '@mdx-js/mdx'; import type { PluggableList } from '@mdx-js/mdx/lib/core.js'; import type { Options as MdxRollupPluginOptions } from '@mdx-js/rollup'; import type { AstroConfig, MarkdownAstroData } from 'astro'; import type { Literal, MemberExpression } from 'estree'; -import { visit } from 'unist-util-visit'; import { visit as estreeVisit } from 'estree-util-visit'; import { bold, yellow } from 'kleur/colors'; +import type { Image } from 'mdast'; +import { pathToFileURL } from 'node:url'; import rehypeRaw from 'rehype-raw'; import remarkGfm from 'remark-gfm'; import remarkSmartypants from 'remark-smartypants'; +import { visit } from 'unist-util-visit'; import type { Data, VFile } from 'vfile'; import { MdxOptions } from './index.js'; import { rehypeInjectHeadingsExport } from './rehype-collect-headings.js'; import rehypeMetaString from './rehype-meta-string.js'; import remarkPrism from './remark-prism.js'; import remarkShiki from './remark-shiki.js'; -import { jsToTreeNode, isRelativePath } from './utils.js'; -import { pathToFileURL } from 'node:url'; +import { isRelativePath, jsToTreeNode } from './utils.js'; export function recmaInjectImportMetaEnvPlugin({ importMetaEnv, |