mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
4537ecf0d0
commit
0aee43fc16
4 changed files with 4 additions and 4 deletions
|
@ -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';
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue