[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) {
|
if (src) {
|
||||||
throw new
|
throw new Error('Infinite loop on byte: ' + src.charCodeAt(0));
|
||||||
Error('Infinite loop on byte: ' + src.charCodeAt(0));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -526,8 +525,7 @@ function InlineLexer(links, options) {
|
|||||||
this.renderer.options = this.options;
|
this.renderer.options = this.options;
|
||||||
|
|
||||||
if (!this.links) {
|
if (!this.links) {
|
||||||
throw new
|
throw new Error('Tokens array requires a `links` property.');
|
||||||
Error('Tokens array requires a `links` property.');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.options.gfm) {
|
if (this.options.gfm) {
|
||||||
@ -581,8 +579,8 @@ InlineLexer.prototype.output = function(src) {
|
|||||||
if (cap[2] === '@') {
|
if (cap[2] === '@') {
|
||||||
text = escape(
|
text = escape(
|
||||||
cap[1].charAt(6) === ':'
|
cap[1].charAt(6) === ':'
|
||||||
? this.mangle(cap[1].substring(7))
|
? this.mangle(cap[1].substring(7))
|
||||||
: this.mangle(cap[1])
|
: this.mangle(cap[1])
|
||||||
);
|
);
|
||||||
href = this.mangle('mailto:') + text;
|
href = this.mangle('mailto:') + text;
|
||||||
} else {
|
} else {
|
||||||
@ -690,8 +688,7 @@ InlineLexer.prototype.output = function(src) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (src) {
|
if (src) {
|
||||||
throw new
|
throw new Error('Infinite loop on byte: ' + src.charCodeAt(0));
|
||||||
Error('Infinite loop on byte: ' + src.charCodeAt(0));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1103,7 +1100,7 @@ function escape(html, encode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function unescape(html) {
|
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) {
|
return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, function(_, n) {
|
||||||
n = n.toLowerCase();
|
n = n.toLowerCase();
|
||||||
if (n === 'colon') return ':';
|
if (n === 'colon') return ':';
|
||||||
@ -1176,7 +1173,6 @@ function merge(obj) {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marked
|
* Marked
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user