Initial Astro site for dd0c.net

This commit is contained in:
Jarvis Prime
2026-03-22 20:00:13 +00:00
commit ba8d866985
9814 changed files with 1376382 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { highlightCodeBlocks } from "./highlight.js";
import { createShikiHighlighter } from "./shiki.js";
const rehypeShiki = (config) => {
let highlighterAsync;
return async (tree) => {
highlighterAsync ??= createShikiHighlighter(config);
const highlighter = await highlighterAsync;
await highlightCodeBlocks(tree, highlighter.highlight);
};
};
export {
rehypeShiki
};