|
|
@ -4,16 +4,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
module.exports = function paragraph(state, startLine/*, endLine*/) { |
|
|
|
var endLine, content, terminate, i, l, token, |
|
|
|
var content, terminate, i, l, token, |
|
|
|
nextLine = startLine + 1, |
|
|
|
terminatorRules; |
|
|
|
|
|
|
|
terminatorRules = state.md.block.ruler.getRules('paragraph'), |
|
|
|
endLine = state.lineMax; |
|
|
|
|
|
|
|
// 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++) { |
|
|
|
// this would be a code block normally, but after paragraph
|
|
|
|
// 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; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
content = state.getLines(startLine, nextLine, state.blkIndent, false).trim(); |
|
|
|
|
|
|
|