Skip to content
Snippets Groups Projects
Commit 7cd75169 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "Tex-Markup in Stud.IP-Dialogen gibt es nur einmal"

Closes #1181

Merge request studip/studip!700
parent da066bc1
No related branches found
No related tags found
No related merge requests found
...@@ -22,8 +22,8 @@ const Markup = { ...@@ -22,8 +22,8 @@ const Markup = {
math_jax: function (element) { math_jax: function (element) {
$('span.math-tex:not(:has(.MathJax)),.formatted-content:contains("[tex]")', element).each((index, block) => { $('span.math-tex:not(:has(.MathJax)),.formatted-content:contains("[tex]")', element).each((index, block) => {
STUDIP.loadChunk('mathjax').then((MathJax) => { STUDIP.loadChunk('mathjax').then((MathJax) => {
if (typeof MathJax.typeset === "function") { if (typeof MathJax.Hub.Typeset === "function") {
MathJax.typeset([block]); MathJax.Hub.Typeset(block);
} }
}); });
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment