From 23ab984862a44ee68ddf2e1073ddd58b405ccb2a Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Thu, 20 Jun 2019 15:47:00 -0400 Subject: [PATCH] Add id to decorateCooked API call for KaTeX as well --- .../javascripts/initializers/discourse-math-katex.js.es6 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 {