mirror of
https://github.com/discourse/discourse-math.git
synced 2025-07-04 21:02:21 +00:00
don't decorate non math
This commit is contained in:
parent
669f756b34
commit
0329745f84
@ -65,6 +65,11 @@ function decorate(elem, isPreview){
|
||||
}
|
||||
|
||||
function mathjax($elem) {
|
||||
|
||||
if (!$elem || !$elem.find) {
|
||||
return;
|
||||
}
|
||||
|
||||
const mathElems = $elem.find('.math');
|
||||
|
||||
if (mathElems.length > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user