MD033/no-inline-html: Add table_allowed_elements parameter.

This commit is contained in:
Alexandre Feblot 2025-05-27 01:32:15 +02:00 committed by David Anson
parent c6e2ee1488
commit 1ac0b22804
16 changed files with 432 additions and 8 deletions

View file

@ -169,7 +169,9 @@
// MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md033.md
"MD033": {
// Allowed elements
"allowed_elements": []
"allowed_elements": [],
// Allowed elements in tables
"table_allowed_elements": []
},
// MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md034.md

View file

@ -154,6 +154,8 @@ MD032: true
MD033:
# Allowed elements
allowed_elements: []
# Allowed elements in tables
table_allowed_elements: []
# MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md034.md
MD034: true

View file

@ -336,6 +336,14 @@ for (const rule of rules) {
"type": "string"
},
"default": []
},
"table_allowed_elements": {
"description": "Allowed elements in tables",
"type": "array",
"items": {
"type": "string"
},
"default": []
}
};
break;

View file

@ -934,6 +934,14 @@
"type": "string"
},
"default": []
},
"table_allowed_elements": {
"description": "Allowed elements in tables",
"type": "array",
"items": {
"type": "string"
},
"default": []
}
},
"additionalProperties": false
@ -953,6 +961,14 @@
"type": "string"
},
"default": []
},
"table_allowed_elements": {
"description": "Allowed elements in tables",
"type": "array",
"items": {
"type": "string"
},
"default": []
}
},
"additionalProperties": false

View file

@ -934,6 +934,14 @@
"type": "string"
},
"default": []
},
"table_allowed_elements": {
"description": "Allowed elements in tables",
"type": "array",
"items": {
"type": "string"
},
"default": []
}
},
"additionalProperties": false
@ -953,6 +961,14 @@
"type": "string"
},
"default": []
},
"table_allowed_elements": {
"description": "Allowed elements in tables",
"type": "array",
"items": {
"type": "string"
},
"default": []
}
},
"additionalProperties": false