|
@ -7,7 +7,7 @@ |
|
|
// this function assumes that first character ("[") already matches;
|
|
|
// this function assumes that first character ("[") already matches;
|
|
|
// returns the end of the label
|
|
|
// returns the end of the label
|
|
|
function parseLinkLabel(state, start) { |
|
|
function parseLinkLabel(state, start) { |
|
|
var level, found, marker, ok, |
|
|
var level, found, marker, |
|
|
labelEnd = -1, |
|
|
labelEnd = -1, |
|
|
max = state.posMax, |
|
|
max = state.posMax, |
|
|
oldPos = state.pos, |
|
|
oldPos = state.pos, |
|
@ -36,9 +36,7 @@ function parseLinkLabel(state, start) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ok = state.parser.skipToken(state); |
|
|
state.parser.skipToken(state); |
|
|
|
|
|
|
|
|
if (!ok) { state.pos++; } |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (found) { |
|
|
if (found) { |
|
|