Basic cours support #44
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ window.addEventListener("load", () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const attribute = "data-math-style";
|
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, {
|
katex.render(element.textContent, element, {
|
||||||
throwOnError: false,
|
throwOnError: false,
|
||||||
displayMode: element.getAttribute(attribute) === "display",
|
displayMode: element.getAttribute(attribute) === "display",
|
||||||
|
|
Loading…
Reference in a new issue