From 1b70c4ace34f7db0ac3362cfb6a4fdfa657e49a8 Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Wed, 12 Feb 2020 00:14:02 -0600 Subject: [PATCH] send inline html to renderer --- src/InlineLexer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }