Skip to content

Commit

Permalink
Add missing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Sep 23, 2018
1 parent f93d858 commit 1eacd0e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ InlineLexer.prototype.output = function(src) {
? this.options.sanitizer
? this.options.sanitizer(cap[0])
: escape(cap[0])
: cap[0]
: cap[0];
continue;
}

Expand Down Expand Up @@ -847,7 +847,7 @@ InlineLexer.prototype.output = function(src) {

InlineLexer.escapes = function(text) {
return text ? text.replace(InlineLexer.rules._escapes, '$1') : text;
}
};

/**
* Compile Link
Expand Down Expand Up @@ -983,7 +983,7 @@ Renderer.prototype.checkbox = function(checked) {
+ 'disabled="" type="checkbox"'
+ (this.options.xhtml ? ' /' : '')
+ '> ';
}
};

Renderer.prototype.paragraph = function(text) {
return '<p>' + text + '</p>\n';
Expand Down Expand Up @@ -1093,16 +1093,16 @@ TextRenderer.prototype.codespan =
TextRenderer.prototype.del =
TextRenderer.prototype.text = function (text) {
return text;
}
};

TextRenderer.prototype.link =
TextRenderer.prototype.image = function(href, title, text) {
return '' + text;
}
};

TextRenderer.prototype.br = function() {
return '';
}
};

/**
* Parsing & Compiling
Expand Down Expand Up @@ -1473,7 +1473,7 @@ function marked(src, opt, callback) {
i = 0;

try {
tokens = Lexer.lex(src, opt)
tokens = Lexer.lex(src, opt);
} catch (e) {
return callback(e);
}
Expand Down Expand Up @@ -1572,7 +1572,7 @@ marked.getDefaults = function () {
tables: true,
xhtml: false
};
}
};

marked.defaults = marked.getDefaults();

Expand Down

0 comments on commit 1eacd0e

Please sign in to comment.