Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--
31672
d---------
-rw-r--r--
12310
-rw-r--r--
28533
d---------
-rw-r--r--
14110
-rw-r--r--
20461
-rw-r--r--
1255
-rw-r--r--
21376
-rw-r--r--
3923
-rwxr-xr-x
16624
-rw-r--r--
6084
-rw-r--r--
34995
-rw-r--r--
7885
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",
);