[lint] fix whitespace
This commit is contained in:
parent
6f8922e296
commit
1a19028b66
@ -436,8 +436,7 @@ Lexer.prototype.token = function(src, top, bq) {
|
||||
}
|
||||
|
||||
if (src) {
|
||||
throw new
|
||||
Error('Infinite loop on byte: ' + src.charCodeAt(0));
|
||||
throw new Error('Infinite loop on byte: ' + src.charCodeAt(0));
|
||||
}
|
||||
}
|
||||
|
||||
@ -526,8 +525,7 @@ function InlineLexer(links, options) {
|
||||
this.renderer.options = this.options;
|
||||
|
||||
if (!this.links) {
|
||||
throw new
|
||||
Error('Tokens array requires a `links` property.');
|
||||
throw new Error('Tokens array requires a `links` property.');
|
||||
}
|
||||
|
||||
if (this.options.gfm) {
|
||||
@ -581,8 +579,8 @@ InlineLexer.prototype.output = function(src) {
|
||||
if (cap[2] === '@') {
|
||||
text = escape(
|
||||
cap[1].charAt(6) === ':'
|
||||
? this.mangle(cap[1].substring(7))
|
||||
: this.mangle(cap[1])
|
||||
? this.mangle(cap[1].substring(7))
|
||||
: this.mangle(cap[1])
|
||||
);
|
||||
href = this.mangle('mailto:') + text;
|
||||
} else {
|
||||
@ -690,8 +688,7 @@ InlineLexer.prototype.output = function(src) {
|
||||
}
|
||||
|
||||
if (src) {
|
||||
throw new
|
||||
Error('Infinite loop on byte: ' + src.charCodeAt(0));
|
||||
throw new Error('Infinite loop on byte: ' + src.charCodeAt(0));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1103,7 +1100,7 @@ function escape(html, encode) {
|
||||
}
|
||||
|
||||
function unescape(html) {
|
||||
// explicitly match decimal, hex, and named HTML entities
|
||||
// explicitly match decimal, hex, and named HTML entities
|
||||
return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, function(_, n) {
|
||||
n = n.toLowerCase();
|
||||
if (n === 'colon') return ':';
|
||||
@ -1176,7 +1173,6 @@ function merge(obj) {
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Marked
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user