mirror of
https://github.com/discourse/discourse-math.git
synced 2025-07-03 12:32:09 +00:00
Add id to decorateCooked API call
This commit is contained in:
parent
6128f07d01
commit
e509c6f6e4
@ -102,9 +102,12 @@ function mathjax($elem, opts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function initializeMath(api, discourse_math_opts) {
|
function initializeMath(api, discourse_math_opts) {
|
||||||
api.decorateCooked(function(elem) {
|
api.decorateCooked(
|
||||||
|
function(elem) {
|
||||||
mathjax(elem, discourse_math_opts);
|
mathjax(elem, discourse_math_opts);
|
||||||
});
|
},
|
||||||
|
{ id: "mathjax" }
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user