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

This commit is contained in:
Joffrey JAFFEUX
2020-05-07 16:36:29 +02:00
committed by GitHub
parent e74170cd9e
commit 8be0ba3aa4

View File

@@ -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);
});
}