feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
+16
View File
@@ -0,0 +1,16 @@
import { createHighlighter, bundledLanguages } from 'shiki';
import { setupMarkdownIt } from './core.mjs';
export { fromHighlighter } from './core.mjs';
async function markdownItShiki(options) {
const themeNames = ("themes" in options ? Object.values(options.themes) : [options.theme]).filter(Boolean);
const highlighter = await createHighlighter({
themes: themeNames,
langs: options.langs || Object.keys(bundledLanguages)
});
return function(markdownit) {
setupMarkdownIt(markdownit, highlighter, options);
};
}
export { markdownItShiki as default, setupMarkdownIt };