mirror of
https://github.com/youwen5/blog.git
synced 2024-11-24 18:03:50 -08:00
Merge branch 'main' into ms-post
This commit is contained in:
commit
dbf23c7e9b
1 changed files with 0 additions and 13 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue