| ... | @@ -1432,7 +1432,7 @@ | ... | @@ -1432,7 +1432,7 @@ |
| 1432 | line.type = "ul"; | 1432 | line.type = "ul"; |
| 1433 | line.text = line.text.substr(1); | 1433 | line.text = line.text.substr(1); |
| 1434 | } | 1434 | } |
| 1435 | else if (line.text.match(/\d+\./)) { | 1435 | else if (line.text.match(/^\d+\..*$/)) { // if line starts with {number}{dot} |
| 1436 | const match = line.text.match(/(\d+)\./); | 1436 | const match = line.text.match(/(\d+)\./); |
| 1437 | line.type = "ul"; | 1437 | line.type = "ul"; |
| 1438 | line.text = line.text.substr(match[0].length); | 1438 | line.text = line.text.substr(match[0].length); |