REFACTOR: function was incorrectly called as a constructor (#9679)

REFACTOR: function was incorrectly called as a constructor (#9679)

diff --git a/app/assets/javascripts/discourse/app/lib/text.js b/app/assets/javascripts/discourse/app/lib/text.js
index 464f9c3..692e75b 100644
--- a/app/assets/javascripts/discourse/app/lib/text.js
+++ b/app/assets/javascripts/discourse/app/lib/text.js
@@ -43,7 +43,7 @@ export function sanitize(text, options) {
 }
 
 export function sanitizeAsync(text, options) {
-  return new loadMarkdownIt().then(() => {
+  return loadMarkdownIt().then(() => {
     return createPrettyText(options).sanitize(text);
   });
 }

GitHub sha: 8be0ba3a

This commit appears in #9679 which was approved by eviltrout. It was merged by jjaffeux.