Basic cours support #44

Merged
Anri merged 67 commits from cours into main 2024-04-01 18:11:49 +02:00
Showing only changes of commit 0e6b66d52f - Show all commits

View file

@ -17,7 +17,7 @@ window.addEventListener("load", () => {
}
const attribute = "data-math-style";
for (let element of document.querySelectorAll(`span[${attribute}]`)) {
for (const element of document.querySelectorAll(`span[${attribute}]`)) {
katex.render(element.textContent, element, {
throwOnError: false,
displayMode: element.getAttribute(attribute) === "display",