const instead of let
This commit is contained in:
parent
f38d3e4cc1
commit
0e6b66d52f
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue