mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-21 16:30:12 +01:00
Update all rules to better handle wrongly-typed configuration parameters.
This commit is contained in:
parent
26ad0550ec
commit
3238ed4249
25 changed files with 134 additions and 39 deletions
|
|
@ -17,7 +17,7 @@ module.exports = {
|
|||
"description": "Ordered list item prefix",
|
||||
"tags": [ "ol" ],
|
||||
"function": function MD029(params, onError) {
|
||||
const style = params.config.style || "one_or_ordered";
|
||||
const style = String(params.config.style || "one_or_ordered");
|
||||
flattenedLists().forEach((list) => {
|
||||
if (!list.unordered) {
|
||||
let listStyle = style;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue