diff --git a/lib/render/html.js b/lib/render/html.js index 204f4fef..30a374ee 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, true)]); + attrs.push(['href', this.esc(node.destination, false)]); } if (node.title) { - attrs.push(['title', this.esc(node.title, true)]); + attrs.push(['title', this.esc(node.title, false)]); } this.tag('a', attrs); } else { @@ -79,7 +79,7 @@ function image(node, entering) { if (this.options.safe && potentiallyUnsafe(node.destination)) { this.lit(''); } @@ -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], true)]); + attrs.push(['class', 'language-' + this.esc(info_words[0], false)]); } this.cr(); this.tag('pre'); diff --git a/test/regression.txt b/test/regression.txt index a658c590..55513c85 100644 --- a/test/regression.txt +++ b/test/regression.txt @@ -95,8 +95,8 @@ Issue #116 - tabs before and after ATX closing heading