mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
REFACTOR: function was incorrectly called as a constructor (#9679)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user