From aba62d01d66b69fda2e64960b2b28ac4e0ffbfa3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 8 Aug 2013 11:29:26 -0500 Subject: [PATCH] style: do not violate 80 col limit. no double quotes. --- lib/marked.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lib/marked.js b/lib/marked.js index e469dcc2c2..327e648e3d 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -735,7 +735,7 @@ InlineLexer.prototype.smartypants = function(text) { // opening singles .replace(/(^|[-\u2014/(\[{"\s])'/g, '$1\u2018') // closing singles & apostrophes - .replace(/'/g, "\u2019") + .replace(/'/g, '\u2019') // opening doubles .replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201c') // closing doubles @@ -889,9 +889,11 @@ Parser.prototype.tok = function() { body += '\n\n'; for (i = 0; i < this.token.header.length; i++) { heading = this.inline.output(this.token.header[i]); - body += this.token.align[i] - ? '' + heading + '\n' - : '' + heading + '\n'; + body += '\n'; } body += '\n\n'; @@ -902,9 +904,11 @@ Parser.prototype.tok = function() { body += '\n'; for (j = 0; j < row.length; j++) { cell = this.inline.output(row[j]); - body += this.token.align[j] - ? '' + cell + '\n' - : '' + cell + '\n'; + body += '\n'; } body += '\n'; }