|
@ -4,16 +4,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = function paragraph(state, startLine/*, endLine*/) { |
|
|
module.exports = function paragraph(state, startLine/*, endLine*/) { |
|
|
var endLine, content, terminate, i, l, token, |
|
|
var content, terminate, i, l, token, |
|
|
nextLine = startLine + 1, |
|
|
nextLine = startLine + 1, |
|
|
terminatorRules; |
|
|
terminatorRules = state.md.block.ruler.getRules('paragraph'), |
|
|
|
|
|
|
|
|
endLine = state.lineMax; |
|
|
endLine = state.lineMax; |
|
|
|
|
|
|
|
|
// jump line-by-line until empty one or EOF
|
|
|
// jump line-by-line until empty one or EOF
|
|
|
if (nextLine < endLine && !state.isEmpty(nextLine)) { |
|
|
|
|
|
terminatorRules = state.md.block.ruler.getRules('paragraph'); |
|
|
|
|
|
|
|
|
|
|
|
for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) { |
|
|
for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) { |
|
|
// this would be a code block normally, but after paragraph
|
|
|
// this would be a code block normally, but after paragraph
|
|
|
// it's considered a lazy continuation regardless of what's there
|
|
|
// it's considered a lazy continuation regardless of what's there
|
|
@ -29,7 +25,6 @@ module.exports = function paragraph(state, startLine/*, endLine*/) { |
|
|
} |
|
|
} |
|
|
if (terminate) { break; } |
|
|
if (terminate) { break; } |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
content = state.getLines(startLine, nextLine, state.blkIndent, false).trim(); |
|
|
content = state.getLines(startLine, nextLine, state.blkIndent, false).trim(); |
|
|
|
|
|
|
|
|