mirror of
https://github.com/youwen5/blog.git
synced 2024-11-24 18:03:50 -08:00
chore: remove commented out katex code
This commit is contained in:
parent
5168db456f
commit
886afecb4f
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