feat: format

This commit is contained in:
Barrett Ruth 2025-05-22 16:12:05 -05:00
parent b0df7bebb0
commit da030f3dc1
30 changed files with 603 additions and 348 deletions

View file

@ -0,0 +1,18 @@
document.addEventListener("DOMContentLoaded", function () {
const katexParagraphs = document.querySelectorAll("article p");
katexParagraphs.forEach((p) => {
const katexSpan = p.querySelector(".katex");
if (!katexSpan) return;
const clone = p.cloneNode(true);
clone.querySelector(".katex").remove();
const textWithoutKatex = clone.textContent.trim();
if (textWithoutKatex === "") {
p.style.display = "flex";
p.style.justifyContent = "center";
p.style.margin = "1.5rem 0";
}
});
});