Merge branch 'main' into ms-post

This commit is contained in:
Youwen Wu 2024-05-26 01:03:37 -07:00
commit dbf23c7e9b
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -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) {