mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-04 13:13:55 +01:00
Correctly hide not rendered LaTeX elements
This commit is contained in:
parent
68a94ee084
commit
a37ea7a2cf
@ -46,10 +46,10 @@
|
|||||||
await promise;
|
await promise;
|
||||||
var node = document.createElement("div");
|
var node = document.createElement("div");
|
||||||
node.innerHTML= String.raw`${LatexInline[0]} ${el.start.toLaTeX()} \rightarrow ${el.end.toLaTeX()}${LatexInline[1]}, ${LatexInline[0]}${el.Eabs}\:\mathrm{eV}${LatexInline[1]}`;
|
node.innerHTML= String.raw`${LatexInline[0]} ${el.start.toLaTeX()} \rightarrow ${el.end.toLaTeX()}${LatexInline[1]}, ${LatexInline[0]}${el.Eabs}\:\mathrm{eV}${LatexInline[1]}`;
|
||||||
|
node.hidden=true
|
||||||
par.appendChild(node);
|
par.appendChild(node);
|
||||||
node.style='none';
|
|
||||||
await MathJax.typesetPromise();
|
await MathJax.typesetPromise();
|
||||||
node.style='block';
|
node.hidden=false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user