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) {