@ -83,11 +83,6 @@ ParserInline.prototype.skipToken = function (state) {
}
for (i = 0; i < len; i++) {
// TODO: change it to rule chains somehow
if ([ 'autolink', 'backticks', 'escape', 'htmltag', 'links', 'text' ].indexOf(this._rules[i].name) === -1) {
continue;
if (this._rules[i](state, true)) {
state.cacheSet(pos, state.pos);
return;
@ -12,6 +12,7 @@ module.exports = function del(state, silent) {
nextChar;
if (state.src.charCodeAt(start) !== 0x7E/* ~ */) { return false; }
if (silent) { return false; } // don't run any pairs in validation mode
if (start + 4 >= max) { return false; }
if (state.src.charCodeAt(start + 1) !== 0x7E/* ~ */) { return false; }
if (state.level >= state.options.maxNesting) { return false; }
@ -61,6 +61,7 @@ module.exports = function emphasis(state, silent) {
marker = state.src.charCodeAt(start);
if (marker !== 0x5F/* _ */ && marker !== 0x2A /* * */) { return false; }
res = scanDelims(state, start);
startCount = res.delims;
@ -12,6 +12,7 @@ module.exports = function ins(state, silent) {
if (state.src.charCodeAt(start) !== 0x2B/* + */) { return false; }
if (state.src.charCodeAt(start + 1) !== 0x2B/* + */) { return false; }
if (state.src.charCodeAt(start) !== 0x3D/* = */) { return false; }
if (state.src.charCodeAt(start + 1) !== 0x3D/* = */) { return false; }
@ -11,6 +11,7 @@ module.exports = function sub(state, silent) {
if (start + 2 >= max) { return false; }
@ -11,6 +11,7 @@ module.exports = function sup(state, silent) {
if (state.src.charCodeAt(start) !== 0x5E/* ^ */) { return false; }