|
|
@ -27,14 +27,13 @@ module.exports = function reference(state, startLine, _endLine, silent) { |
|
|
|
max = state.eMarks[startLine], |
|
|
|
nextLine = startLine + 1; |
|
|
|
|
|
|
|
if (pos >= max) { return false; } |
|
|
|
if (state.src.charCodeAt(pos) !== 0x5B/* [ */) { return false; } |
|
|
|
|
|
|
|
endLine = state.lineMax; |
|
|
|
|
|
|
|
// jump line-by-line until empty one or EOF
|
|
|
|
if (nextLine < endLine && !state.isEmpty(nextLine)) { |
|
|
|
terminatorRules = state.md.block.ruler.getRules('references'); |
|
|
|
terminatorRules = state.md.block.ruler.getRules('reference'); |
|
|
|
|
|
|
|
for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) { |
|
|
|
// this would be a code block normally, but after paragraph
|
|
|
|