mirror of
https://github.com/discourse/discourse-math.git
synced 2025-07-01 11:32:11 +00:00
FIX: prevents inline span to be forced into blocks (#69)
Prior to this fix the "block" style would be used on any node (block or inline).
This commit is contained in:
parent
c0179a56f8
commit
69494ca5a4
@ -78,7 +78,7 @@ function decorate(elem, isPreview) {
|
|||||||
if (elem?.parentElement?.offsetParent !== null) {
|
if (elem?.parentElement?.offsetParent !== null) {
|
||||||
window.MathJax.Hub.Typeset(mathScript, () => {
|
window.MathJax.Hub.Typeset(mathScript, () => {
|
||||||
elem.style.display = "none";
|
elem.style.display = "none";
|
||||||
mathWrapper.style.display = "block";
|
mathWrapper.style.display = null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user