mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 14:30:12 +01:00
Support paren vs. dot for ordered list markers per CommonMark specification.
This commit is contained in:
parent
557c5942ea
commit
3a356467cd
4 changed files with 33 additions and 1 deletions
|
|
@ -625,7 +625,7 @@ module.exports = [
|
|||
if (!list.unordered) {
|
||||
var number = 1;
|
||||
list.items.forEach(function forItem(item) {
|
||||
var re = new RegExp("^[\\s>]*" + String(number) + "\\.");
|
||||
var re = new RegExp("^[\\s>]*" + String(number) + "[\\.)]");
|
||||
if (!re.test(item.line)) {
|
||||
errors.push(item.lineNumber);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue