mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
REFACTOR: function was incorrectly called as a constructor (#9679)
This commit is contained in:
parent
e74170cd9e
commit
8be0ba3aa4
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user