diff --git a/src/InlineLexer.js b/src/InlineLexer.js index d0c9d4129b..86f62b01fa 100644 --- a/src/InlineLexer.js +++ b/src/InlineLexer.js @@ -82,11 +82,11 @@ module.exports = class InlineLexer { } src = src.substring(cap[0].length); - out += this.options.sanitize - ? this.options.sanitizer + out += this.renderer.html(this.options.sanitize + ? (this.options.sanitizer ? this.options.sanitizer(cap[0]) - : escape(cap[0]) - : cap[0]; + : escape(cap[0])) + : cap[0]); continue; }