From 45d2db36ecd1fa4b3743db01ab668228d7bfb70f Mon Sep 17 00:00:00 2001 From: Robin Stocker Date: Fri, 12 Jul 2019 11:34:54 +1000 Subject: [PATCH] Remove no longer used argument to escapeXml The argument was removed from the function definition itself in commit 562b8671d1b12b159562f71ea5939ce3c45a0cff. --- lib/render/html.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/render/html.js b/lib/render/html.js index 30a374ee..83686ff5 100644 --- a/lib/render/html.js +++ b/lib/render/html.js @@ -62,10 +62,10 @@ function link(node, entering) { var attrs = this.attrs(node); if (entering) { if (!(this.options.safe && potentiallyUnsafe(node.destination))) { - attrs.push(['href', this.esc(node.destination, false)]); + attrs.push(['href', this.esc(node.destination)]); } if (node.title) { - attrs.push(['title', this.esc(node.title, false)]); + attrs.push(['title', this.esc(node.title)]); } this.tag('a', attrs); } else { @@ -79,7 +79,7 @@ function image(node, entering) { if (this.options.safe && potentiallyUnsafe(node.destination)) { this.lit('');
       } else {
-        this.lit('<img src='); } @@ -143,7 +143,7 @@ function code_block(node) { var info_words = node.info ? node.info.split(/\s+/) : [] , attrs = this.attrs(node); if (info_words.length > 0 && info_words[0].length > 0) { - attrs.push(['class', 'language-' + this.esc(info_words[0], false)]); + attrs.push(['class', 'language-' + this.esc(info_words[0])]); } this.cr(); this.tag('pre'); @@ -242,7 +242,7 @@ function custom_block(node, entering) { /* Helper methods */ function out(s) { - this.lit(this.esc(s, false)); + this.lit(this.esc(s)); } function attrs (node) {