|
|
@ -11,11 +11,6 @@ module.exports = function parseLinkLabel(state, start, disableNested) { |
|
|
|
max = state.posMax, |
|
|
|
oldPos = state.pos; |
|
|
|
|
|
|
|
if (state.labelUnmatchedScopes) { |
|
|
|
state.labelUnmatchedScopes--; |
|
|
|
return -1; |
|
|
|
} |
|
|
|
|
|
|
|
state.pos = start + 1; |
|
|
|
level = 1; |
|
|
|
|
|
|
@ -44,9 +39,6 @@ module.exports = function parseLinkLabel(state, start, disableNested) { |
|
|
|
|
|
|
|
if (found) { |
|
|
|
labelEnd = state.pos; |
|
|
|
state.labelUnmatchedScopes = 0; |
|
|
|
} else { |
|
|
|
state.labelUnmatchedScopes = level - 1; |
|
|
|
} |
|
|
|
|
|
|
|
// restore old state
|
|
|
|