mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-01 06:41:18 -08:00
Fixed two bugs
This commit is contained in:
parent
a2958c5183
commit
a169980a54
1 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ WikiTextRenderer.prototype.parseRun = function(terminatorRegExp) {
|
|||
if(terminatorMatch.index > this.pos) {
|
||||
tree.push($tw.Tree.Text(this.source.substring(this.pos,terminatorMatch.index)));
|
||||
}
|
||||
this.pos = terminatorMatch.index;
|
||||
this.pos = terminatorMatch.index + terminatorMatch[0].length;
|
||||
return tree;
|
||||
}
|
||||
}
|
||||
|
|
@ -120,7 +120,7 @@ WikiTextRenderer.prototype.parseRun = function(terminatorRegExp) {
|
|||
}
|
||||
// Process the remaining text
|
||||
if(this.pos < this.sourceLength) {
|
||||
tree.push($tw.tree.Text(this.source.substr(this.pos)));
|
||||
tree.push($tw.Tree.Text(this.source.substr(this.pos)));
|
||||
}
|
||||
this.pos = this.sourceLength;
|
||||
return tree;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue