Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
sm.sh/shiki@3.21.0';
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",
);