Skip to content
Snippets Groups Projects
Commit 30c02c4d authored by echicken's avatar echicken
Browse files

List depth stuff.

parent 4588c5da
Branches
Tags
No related merge requests found
......@@ -271,10 +271,10 @@ Markdown.prototype.render_line_console = function (line) {
}
if (match[1].length > this.state.list_level) {
this.state.list_level++;
if (lt == 'ol') this.state.list_stack.push(0);
if (lt == 'ol') this.state.list_stack[this.state.list_level] = 0;
} else if (match[1].length < this.state.list_level) {
if (lt == 'ol') this.state.list_stack.splice(this.state.list_level, 1);
this.state.list_level--;
if (lt == 'ol') this.state.list_stack.pop();
} else if (lt == 'ol') {
if (typeof this.state.list_stack[this.state.list_level] != 'number') {
this.state.list_stack[this.state.list_level] = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment