Make checkbox id order ascending (fixes #678)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -100,11 +100,11 @@ checkboxReplace = function(md, options, Token) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
tokens = blockTokens[j].children;
|
tokens = blockTokens[j].children;
|
||||||
i = tokens.length - 1;
|
i = 0;
|
||||||
while (i >= 0) {
|
while (i < tokens.length) {
|
||||||
token = tokens[i];
|
token = tokens[i];
|
||||||
blockTokens[j].children = tokens = arrayReplaceAt(tokens, i, splitTextToken(token, state.Token));
|
blockTokens[j].children = tokens = arrayReplaceAt(tokens, i, splitTextToken(token, state.Token));
|
||||||
i--;
|
i++;
|
||||||
}
|
}
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user