chore: remove commented out katex code

This commit is contained in:
Youwen Wu 2024-05-26 01:03:21 -07:00
parent 5168db456f
commit 886afecb4f
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -2,19 +2,6 @@ import "../css/default.css"
// @ts-check // @ts-check
// document.addEventListener("DOMContentLoaded", () => {
// var mathElements = document.querySelectorAll(".math.inline, .math.display")
// mathElements.forEach(function (element) {
// var tex = element.textContent
// var displayMode = element.classList.contains("display")
// var renderedMath = katex.renderToString(tex, {
// displayMode: displayMode,
// throwOnError: false,
// })
// element.innerHTML = renderedMath
// })
// })
//
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches
const themeSystem = () => { const themeSystem = () => {
if (prefersDark) { if (prefersDark) {