@nuxtjs/mdc
Version:
Nuxt MDC module
15 lines (14 loc) • 680 B
TypeScript
import type { LanguageInput, ThemeInput, RegexEngine } from '@shikijs/types';
import type { MdcConfig, Highlighter } from '@nuxtjs/mdc';
export interface CreateShikiHighlighterOptions {
themes?: ThemeInput[];
langs?: LanguageInput[];
bundledThemes?: Record<string, ThemeInput>;
bundledLangs?: Record<string, LanguageInput>;
options?: {
wrapperStyle?: string;
};
getMdcConfigs?: () => Promise<MdcConfig[]>;
engine?: RegexEngine | Promise<RegexEngine>;
}
export declare function createShikiHighlighter({ langs, themes, bundledLangs, bundledThemes, getMdcConfigs, options: shikiOptions, engine }?: CreateShikiHighlighterOptions): Highlighter;