site/node_modules/shiki/dist/bundle-full.mjs

29 lines
1,023 B
JavaScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
import { bundledLanguages } from './langs.mjs';
export { bundledLanguagesAlias, bundledLanguagesBase, bundledLanguagesInfo } from './langs.mjs';
import { g as getWasmInlined } from './chunks/wasm-dynamic.mjs';
import { bundledThemes } from './themes.mjs';
export { bundledThemesInfo } from './themes.mjs';
import { createdBundledHighlighter, createSingletonShorthands } from '@shikijs/core';
export * from '@shikijs/core';
const createHighlighter = /* @__PURE__ */ createdBundledHighlighter(
bundledLanguages,
bundledThemes,
getWasmInlined
);
const {
codeToHtml,
codeToHast,
codeToTokens,
codeToTokensBase,
codeToTokensWithThemes,
getSingletonHighlighter
} = /* @__PURE__ */ createSingletonShorthands(
createHighlighter
);
const getHighlighter = (options) => {
return createHighlighter(options);
};
export { bundledLanguages, bundledThemes, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createHighlighter, getHighlighter, getSingletonHighlighter, getWasmInlined };