Add id to decorateCooked API call

This commit is contained in:
Penar Musaraj 2019-06-20 10:14:57 -04:00
parent 6128f07d01
commit e509c6f6e4
1 changed files with 6 additions and 3 deletions

View File

@ -102,9 +102,12 @@ function mathjax($elem, opts) {
}
function initializeMath(api, discourse_math_opts) {
api.decorateCooked(function(elem) {
mathjax(elem, discourse_math_opts);
});
api.decorateCooked(
function(elem) {
mathjax(elem, discourse_math_opts);
},
{ id: "mathjax" }
);
}
export default {