diff --git a/client/js/util/markdown.js b/client/js/util/markdown.js index 3d50b0d..f43a536 100644 --- a/client/js/util/markdown.js +++ b/client/js/util/markdown.js @@ -117,7 +117,7 @@ class StrikeThroughWrapper extends BaseMarkdownWrapper { function createRenderer() { function sanitize(str) { - return str.replace(/&<"/g, function (m) { + return str.replace(/&<"/g, m => { if (m === '&') { return '&'; } @@ -140,7 +140,7 @@ function createRenderer() { res += '" height="' + height; } return res + '">'; - } + }; return renderer; }