We are talking to the developer that this type of token can not be found
This commit is contained in:
parent
ba2645774d
commit
c66cd5efc0
@ -1082,6 +1082,14 @@ Parser.prototype.tok = function() {
|
||||
case 'text': {
|
||||
return this.renderer.paragraph(this.parseText());
|
||||
}
|
||||
default: {
|
||||
var errMsg = 'Token with "' + this.token.type + '" type was not found.';
|
||||
if (this.options.silent) {
|
||||
console.log(errMsg);
|
||||
} else {
|
||||
throw new Error(errMsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user