mirror of
https://github.com/kotaindah55/extended-markdown-syntax.git
synced 2026-07-22 05:38:06 +00:00
fix: no longer parse the entire text on a big file
This commit is contained in:
parent
58745b2835
commit
048b8f5efa
1 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ export class ParserState {
|
|||
return null;
|
||||
}
|
||||
nextLine(skipBlankLine = true) {
|
||||
if (this.linePos == this.maxLine) {
|
||||
if (this.linePos >= this.maxLine) {
|
||||
this.queue.resolveAll();
|
||||
return null;
|
||||
}
|
||||
|
|
@ -106,7 +106,7 @@ export class ParserState {
|
|||
if (skipBlankLine) {
|
||||
if (this.isBlankLine()) {
|
||||
this.queue.resolveAll(this.line.to);
|
||||
while (this.linePos != this.maxLine) {
|
||||
while (this.linePos < this.maxLine) {
|
||||
this.line = this.doc.line(this.linePos + 1);
|
||||
if (!this.isBlankLine()) { break }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue