0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

[ci] format

This commit is contained in:
bluwy 2023-11-14 15:01:58 +00:00 committed by astrobot-houston
parent 4537ecf0d0
commit 0aee43fc16
4 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
import { replaceCssVariables } from '@astrojs/markdown-remark';
import * as fs from 'node:fs';
import { fileURLToPath } from 'node:url';
import { codeToHtml } from 'shikiji';
import type { ErrorPayload } from 'vite';
import { replaceCssVariables } from '@astrojs/markdown-remark';
import type { ModuleLoader } from '../../module-loader/index.js';
import { FailedToLoadModuleSSR, InvalidGlob, MdxIntegrationMissingError } from '../errors-data.js';
import { AstroError, type ErrorWithMetadata } from '../errors.js';

View file

@ -1,7 +1,7 @@
import {
createShikiHighlighter,
type ShikiHighlighter,
type ShikiConfig,
type ShikiHighlighter,
} from '@astrojs/markdown-remark';
// Caches Promise<ShikiHighlighter> for reuse when the same theme and langs are provided

View file

@ -1,5 +1,5 @@
import Markdoc from '@markdoc/markdoc';
import { createShikiHighlighter } from '@astrojs/markdown-remark';
import Markdoc from '@markdoc/markdoc';
import type { ShikiConfig } from 'astro';
import { unescapeHTML } from 'astro/runtime/server/index.js';
import type { AstroMarkdocConfig } from '../config.js';

View file

@ -1,6 +1,6 @@
import { visit } from 'unist-util-visit';
import type { RemarkPlugin, ShikiConfig } from './types.js';
import { createShikiHighlighter, type ShikiHighlighter } from './shiki.js';
import type { RemarkPlugin, ShikiConfig } from './types.js';
export function remarkShiki(config?: ShikiConfig): ReturnType<RemarkPlugin> {
let highlighterAsync: Promise<ShikiHighlighter> | undefined;