|
|
@ -31,11 +31,7 @@ function State(src, parser, tokens, options, env) { |
|
|
|
this.tShift = []; // indent for each line
|
|
|
|
this.bqMarks = []; // lines shifts in blockquotes (calculated on bq enter)
|
|
|
|
|
|
|
|
// inline parser variables
|
|
|
|
this.pos = 0; // char index in src
|
|
|
|
|
|
|
|
// block parser variables
|
|
|
|
this.blkLevel = 0; |
|
|
|
this.blkIndent = 0; |
|
|
|
this.line = 0; // line index in src
|
|
|
|
this.lineMax = 0; // lines count
|
|
|
@ -83,7 +79,7 @@ function State(src, parser, tokens, options, env) { |
|
|
|
if (ch !== 0x0D || ch !== 0x0A) { |
|
|
|
this.bMarks.push(start); |
|
|
|
this.eMarks.push(len); |
|
|
|
this.tShift.push(indent); |
|
|
|
if (!indent_found) { this.tShift.push(indent); } |
|
|
|
} |
|
|
|
|
|
|
|
// Push fake entry to simplify cache bounds checks
|
|
|
@ -93,7 +89,7 @@ function State(src, parser, tokens, options, env) { |
|
|
|
|
|
|
|
this.lineMax = this.bMarks.length - 1; // don't count last fake line
|
|
|
|
|
|
|
|
for (start = 0; start < this.bMarks.length; start++) { |
|
|
|
for (start = this.bMarks.length; start > 0; start--) { |
|
|
|
this.bqMarks.push(0); |
|
|
|
} |
|
|
|
} |
|
|
|