From 886afecb4fec4777b89fd7a034a270ff175b058c Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 26 May 2024 01:03:21 -0700 Subject: [PATCH] chore: remove commented out katex code --- src/js/main.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/js/main.js b/src/js/main.js index fd45b9c..36d6c26 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -2,19 +2,6 @@ import "../css/default.css" // @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 themeSystem = () => { if (prefersDark) {