diff --git a/assets/javascripts/initializers/discourse-math-katex.js.es6 b/assets/javascripts/initializers/discourse-math-katex.js.es6 index 3dc7b6b..78f4b62 100644 --- a/assets/javascripts/initializers/discourse-math-katex.js.es6 +++ b/assets/javascripts/initializers/discourse-math-katex.js.es6 @@ -42,9 +42,12 @@ function katex($elem) { } function initializeMath(api) { - api.decorateCooked(function(elem) { - katex(elem); - }); + api.decorateCooked( + function(elem) { + katex(elem); + }, + { id: "katex" } + ); } export default {