mirror of
https://github.com/kotaindah55/extended-markdown-syntax.git
synced 2026-07-22 05:38:06 +00:00
fix: reassign offset to 0 before resolveContext
resolveContext should be executed once at streamParse before iterating parseLine, or at each nextLine after reassigning this.line to its next and this.offset to 0.
This commit is contained in:
parent
82fbbbbcbf
commit
6c8ce72baf
1 changed files with 1 additions and 1 deletions
|
|
@ -99,6 +99,7 @@ export class ParserState {
|
|||
return null;
|
||||
}
|
||||
this.line = this.doc.line(this.linePos + 1);
|
||||
this.offset = 0;
|
||||
this.resolveContext();
|
||||
if (skipBlankLine) {
|
||||
if (this.isBlankLine()) {
|
||||
|
|
@ -110,7 +111,6 @@ export class ParserState {
|
|||
}
|
||||
}
|
||||
}
|
||||
this.offset = 0;
|
||||
return this.line;
|
||||
}
|
||||
isLastLine() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue