Complete residential site build with Docker Compose & Gitea Actions deployment

This commit is contained in:
CalebLewallen
2026-05-13 17:31:20 -04:00
parent f9c4e13a50
commit 3c22823f72
19354 changed files with 2097331 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { runHighlighterWithAstro } from "@astrojs/prism/dist/highlighter";
import { highlightCodeBlocks } from "./highlight.js";
const rehypePrism = (excludeLangs) => {
return async (tree) => {
await highlightCodeBlocks(
tree,
async (code, language) => {
let { html, classLanguage } = await runHighlighterWithAstro(language, code);
return `<pre class="${classLanguage}" data-language="${language}"><code class="${classLanguage}">${html}</code></pre>`;
},
excludeLangs
);
};
};
export {
rehypePrism
};