1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-08 09:48:05 +00:00

Fixed problem with styled block wikitext rule

This commit is contained in:
Jeremy Ruston
2012-06-14 18:49:51 +01:00
parent 11c9031873
commit b41a1cb4de
2 changed files with 22 additions and 2 deletions

View File

@@ -39,9 +39,9 @@ exports.parse = function(match,isBlock) {
// Look for the first style specifier
reStyleSpecififer.lastIndex = this.pos;
match = reStyleSpecififer.exec(this.source);
while(match) {
while(match && match.index === this.pos) {
// Save the style specified
styles[match[1].trim()] = match[2].trim();
styles[match[1]] = match[2].trim();
// Look to see if there is a further style specifier
this.pos = match.index + match[0].length;
reStyleSpecififer.lastIndex = this.pos;