Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--
2155
-rw-r--r--
267
import { createHighlighter } from 'https://esm.sh/[email protected]';
const t = Object.freeze((await fetch("/icons/theme.json")).json());
const highlighter = await createHighlighter({ themes: [], langs: ["scm"] });
await highlighter.loadTheme(t);
const o = document.getElementById('code-block');
const i = document.getElementById('contents');
o.innerHTML = (await highlighter.codeToHtml(i.innerText, {
lang: "scm",
theme: 'ayu-mirage'
})).replaceAll(
"font-style:italic",
"font-family:'Cascadia Code NF Italic', 'Cascadia Code', italic",
);
w-r--r--
565
-rw-r--r--
725