From e7a3002c6c9f8f40da40b757b160f6bc0b8c1695 Mon Sep 17 00:00:00 2001 From: Ari Epstein Date: Mon, 9 Feb 2015 16:52:29 -0500 Subject: [PATCH] Inline lexer must pass encode argument to escape() The the escape method for InlineLexer did not take a second argument. The escape method underlying it accepts this argument. For certain things like inline code, this argument needs to be passed for things to work as expected (e.g. inline code should have `&` escaped). --- lib/kramed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/kramed.js b/lib/kramed.js index 96b06e8..0c9ad61 100644 --- a/lib/kramed.js +++ b/lib/kramed.js @@ -599,12 +599,12 @@ InlineLexer.output = function(src, links, options) { return inline.output(src); }; -InlineLexer.prototype.escape = function(html) { +InlineLexer.prototype.escape = function(html, encode) { // Handle escaping being turned off if(this.options && this.options.escape === false) { return html; } - return escape(html); + return escape(html, encode); }; /**