diff options
author | 2022-06-06 16:49:53 +0000 | |
---|---|---|
committer | 2022-06-06 16:49:53 +0000 | |
commit | f0f6a3332f88327cf165a35a668ca14aeaac0491 (patch) | |
tree | de26dc62371a7a3f954169ade1bdf3bbac607b13 /packages/markdown/remark/src | |
parent | 5b06398b7ba513a943996aea23399a2e2cb68fd5 (diff) | |
download | astro-f0f6a3332f88327cf165a35a668ca14aeaac0491.tar.gz astro-f0f6a3332f88327cf165a35a668ca14aeaac0491.tar.zst astro-f0f6a3332f88327cf165a35a668ca14aeaac0491.zip |
[ci] formatfix/map-file-404-logs
Diffstat (limited to 'packages/markdown/remark/src')
-rw-r--r-- | packages/markdown/remark/src/index.ts | 18 | ||||
-rw-r--r-- | packages/markdown/remark/src/rehype-collect-headers.ts | 4 | ||||
-rw-r--r-- | packages/markdown/remark/src/rehype-escape.ts | 2 | ||||
-rw-r--r-- | packages/markdown/remark/src/remark-mdxish.ts | 4 | ||||
-rw-r--r-- | packages/markdown/remark/src/remark-prism.ts | 4 | ||||
-rw-r--r-- | packages/markdown/remark/src/remark-unwrap.ts | 2 | ||||
-rw-r--r-- | packages/markdown/remark/src/types.ts | 4 |
7 files changed, 19 insertions, 19 deletions
diff --git a/packages/markdown/remark/src/index.ts b/packages/markdown/remark/src/index.ts index 2e9aa54fd..917976d5e 100644 --- a/packages/markdown/remark/src/index.ts +++ b/packages/markdown/remark/src/index.ts @@ -1,24 +1,24 @@ import type { MarkdownRenderingOptions, MarkdownRenderingResult } from './types'; +import { loadPlugins } from './load-plugins.js'; import createCollectHeaders from './rehype-collect-headers.js'; -import scopedStyles from './remark-scoped-styles.js'; +import rehypeEscape from './rehype-escape.js'; import rehypeExpressions from './rehype-expressions.js'; import rehypeIslands from './rehype-islands.js'; -import remarkMdxish from './remark-mdxish.js'; -import remarkMarkAndUnravel from './remark-mark-and-unravel.js'; import rehypeJsx from './rehype-jsx.js'; -import rehypeEscape from './rehype-escape.js'; +import remarkMarkAndUnravel from './remark-mark-and-unravel.js'; +import remarkMdxish from './remark-mdxish.js'; import remarkPrism from './remark-prism.js'; +import scopedStyles from './remark-scoped-styles.js'; import remarkShiki from './remark-shiki.js'; import remarkUnwrap from './remark-unwrap.js'; -import { loadPlugins } from './load-plugins.js'; -import { unified } from 'unified'; +import Slugger from 'github-slugger'; +import rehypeRaw from 'rehype-raw'; +import rehypeStringify from 'rehype-stringify'; import markdown from 'remark-parse'; import markdownToHtml from 'remark-rehype'; -import rehypeStringify from 'rehype-stringify'; -import rehypeRaw from 'rehype-raw'; -import Slugger from 'github-slugger'; +import { unified } from 'unified'; import { VFile } from 'vfile'; export * from './types.js'; diff --git a/packages/markdown/remark/src/rehype-collect-headers.ts b/packages/markdown/remark/src/rehype-collect-headers.ts index 44881864b..9a64d59c8 100644 --- a/packages/markdown/remark/src/rehype-collect-headers.ts +++ b/packages/markdown/remark/src/rehype-collect-headers.ts @@ -1,6 +1,6 @@ -import { visit } from 'unist-util-visit'; -import { toHtml } from 'hast-util-to-html'; import Slugger from 'github-slugger'; +import { toHtml } from 'hast-util-to-html'; +import { visit } from 'unist-util-visit'; import type { MarkdownHeader, RehypePlugin } from './types.js'; diff --git a/packages/markdown/remark/src/rehype-escape.ts b/packages/markdown/remark/src/rehype-escape.ts index 5cf463608..a32027b89 100644 --- a/packages/markdown/remark/src/rehype-escape.ts +++ b/packages/markdown/remark/src/rehype-escape.ts @@ -1,4 +1,4 @@ -import { SKIP, visit } from 'unist-util-visit'; +import { visit } from 'unist-util-visit'; export default function rehypeEscape(): any { return function (node: any): any { diff --git a/packages/markdown/remark/src/remark-mdxish.ts b/packages/markdown/remark/src/remark-mdxish.ts index 3293f6f45..71f36042a 100644 --- a/packages/markdown/remark/src/remark-mdxish.ts +++ b/packages/markdown/remark/src/remark-mdxish.ts @@ -1,7 +1,7 @@ -import { mdxjs } from 'micromark-extension-mdxjs'; -import { mdxFromMarkdown, mdxToMarkdown } from './mdast-util-mdxish.js'; import type * as fromMarkdown from 'mdast-util-from-markdown'; import type { Tag } from 'mdast-util-mdx-jsx'; +import { mdxjs } from 'micromark-extension-mdxjs'; +import { mdxFromMarkdown, mdxToMarkdown } from './mdast-util-mdxish.js'; export default function remarkMdxish(this: any, options = {}) { const data = this.data(); diff --git a/packages/markdown/remark/src/remark-prism.ts b/packages/markdown/remark/src/remark-prism.ts index 544de1540..caa50f738 100644 --- a/packages/markdown/remark/src/remark-prism.ts +++ b/packages/markdown/remark/src/remark-prism.ts @@ -1,7 +1,7 @@ -import { visit } from 'unist-util-visit'; -import Prism from 'prismjs'; import { addAstro } from '@astrojs/prism/internal'; +import Prism from 'prismjs'; import loadLanguages from 'prismjs/components/index.js'; +import { visit } from 'unist-util-visit'; const noVisit = new Set(['root', 'html', 'text']); const languageMap = new Map([['ts', 'typescript']]); diff --git a/packages/markdown/remark/src/remark-unwrap.ts b/packages/markdown/remark/src/remark-unwrap.ts index 3ce7a72c0..e54f01397 100644 --- a/packages/markdown/remark/src/remark-unwrap.ts +++ b/packages/markdown/remark/src/remark-unwrap.ts @@ -1,4 +1,4 @@ -import { visit as _visit, SKIP } from 'unist-util-visit'; +import { SKIP, visit as _visit } from 'unist-util-visit'; // This is a workaround. // It fixes a compatibility issue between different, incompatible ASTs given by plugins to Unist diff --git a/packages/markdown/remark/src/types.ts b/packages/markdown/remark/src/types.ts index af9778c9a..ddd96b3d1 100644 --- a/packages/markdown/remark/src/types.ts +++ b/packages/markdown/remark/src/types.ts @@ -1,7 +1,7 @@ -import type * as unified from 'unified'; -import type * as mdast from 'mdast'; import type * as hast from 'hast'; +import type * as mdast from 'mdast'; import type { ILanguageRegistration, IThemeRegistration, Theme } from 'shiki'; +import type * as unified from 'unified'; export type { Node } from 'unist'; |