|
|
@ -15,7 +15,11 @@ module.exports = function paragraph(state, startLine/*, endLine*/) { |
|
|
|
endLine = state.lineMax; |
|
|
|
|
|
|
|
// jump line-by-line until empty one or EOF
|
|
|
|
while (nextLine < endLine && !isEmpty(state, nextLine)) { |
|
|
|
for (; nextLine < endLine && !isEmpty(state, nextLine); nextLine++) { |
|
|
|
// this would be a code block normally, but after paragraph
|
|
|
|
// it's considered a lazy continuation regardless of what's there
|
|
|
|
if (state.tShift[nextLine] - state.blkIndent > 3) { continue; } |
|
|
|
|
|
|
|
// Some tags can terminate paragraph without empty line.
|
|
|
|
if (rules_named.fences(state, nextLine, endLine, true)) { break; } |
|
|
|
if (rules_named.hr(state, nextLine, endLine, true)) { break; } |
|
|
@ -27,7 +31,6 @@ module.exports = function paragraph(state, startLine/*, endLine*/) { |
|
|
|
if (rules_named.table(state, nextLine, endLine, true)) { break; } |
|
|
|
//if (rules_named.tag(state, nextLine, endLine, true)) { break; }
|
|
|
|
//if (rules_named.def(state, nextLine, endLine, true)) { break; }
|
|
|
|
nextLine++; |
|
|
|
} |
|
|
|
|
|
|
|
state.tokens.push({ type: 'paragraph_open' }); |
|
|
|