Files
dealplustech/node_modules/astro/dist/core/shiki.js
Kunthawat 77ac4d2d05 feat: Upgrade to Astro with full PDPA compliance
PDPA Features:
 Cookie consent banner
 Consent logging API
 Admin dashboard
 Privacy Policy
 Terms & Conditions

Technical:
 Astro 5.x + Tailwind v4
 Docker on port 80
 SQLite database
 15 pages built

Ready for Easypanel deployment.
2026-03-12 10:01:04 +07:00

17 lines
459 B
JavaScript

import {
createShikiHighlighter
} from "@astrojs/markdown-remark";
const cachedHighlighters = /* @__PURE__ */ new Map();
function getCachedHighlighter(opts) {
const key = JSON.stringify(opts, Object.keys(opts).sort());
if (cachedHighlighters.has(key)) {
return cachedHighlighters.get(key);
}
const highlighter = createShikiHighlighter(opts);
cachedHighlighters.set(key, highlighter);
return highlighter;
}
export {
getCachedHighlighter
};