mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Update break-all-the-rules.md for new rules, fix bug in MD033.
This commit is contained in:
parent
5d6d9d2b3b
commit
f1cd4e0fbb
3 changed files with 41 additions and 4 deletions
|
|
@ -624,10 +624,13 @@ module.exports = [
|
||||||
"desc": "Inline HTML",
|
"desc": "Inline HTML",
|
||||||
"tags": [ "html" ],
|
"tags": [ "html" ],
|
||||||
"func": function MD033(params, errors) {
|
"func": function MD033(params, errors) {
|
||||||
filterTokens(params.tokens, "html_inline", "html_block")
|
filterTokens(params.tokens, "html_block")
|
||||||
.forEach(function forToken(token) {
|
.forEach(function forToken(token) {
|
||||||
errors.push(token.lineNumber);
|
errors.push(token.lineNumber);
|
||||||
});
|
});
|
||||||
|
forEachInlineChild(params, "html_inline", function forToken(token) {
|
||||||
|
errors.push(token.lineNumber);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,5 +47,29 @@ Note: Can not break MD025 and MD002 in the same file
|
||||||
2. list {MD029}
|
2. list {MD029}
|
||||||
|
|
||||||
```js
|
```js
|
||||||
``` {MD031}
|
```
|
||||||
* list {MD032}
|
* list {MD032}
|
||||||
|
|
||||||
|
{MD031:50}
|
||||||
|
|
||||||
|
<br/> {MD033}
|
||||||
|
|
||||||
|
http://example.com/page {MD034}
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
{MD035:61}
|
||||||
|
|
||||||
|
_Section {MD036} Header_
|
||||||
|
|
||||||
|
Emphasis *with * space {MD037}
|
||||||
|
|
||||||
|
Code `with ` space {MD038}
|
||||||
|
|
||||||
|
[link with space ](link) {MD039}
|
||||||
|
|
||||||
|
```
|
||||||
|
code fence without language {MD040:73}
|
||||||
|
```
|
||||||
|
|
|
||||||
|
|
@ -389,7 +389,15 @@ module.exports.styleAll = function styleAll(test) {
|
||||||
"MD029": [ 47 ],
|
"MD029": [ 47 ],
|
||||||
"MD030": [ 8 ],
|
"MD030": [ 8 ],
|
||||||
"MD031": [ 50 ],
|
"MD031": [ 50 ],
|
||||||
"MD032": [ 51 ]
|
"MD032": [ 51 ],
|
||||||
|
"MD033": [ 55 ],
|
||||||
|
"MD034": [ 57 ],
|
||||||
|
"MD035": [ 61 ],
|
||||||
|
"MD036": [ 65 ],
|
||||||
|
"MD037": [ 67 ],
|
||||||
|
"MD038": [ 69 ],
|
||||||
|
"MD039": [ 71 ],
|
||||||
|
"MD040": [ 73 ]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
test.deepEqual(actualResult, expectedResult, "Undetected issues.");
|
test.deepEqual(actualResult, expectedResult, "Undetected issues.");
|
||||||
|
|
@ -424,7 +432,9 @@ module.exports.styleRelaxed = function styleRelaxed(test) {
|
||||||
"MD026": [ 40 ],
|
"MD026": [ 40 ],
|
||||||
"MD029": [ 47 ],
|
"MD029": [ 47 ],
|
||||||
"MD031": [ 50 ],
|
"MD031": [ 50 ],
|
||||||
"MD032": [ 51 ]
|
"MD032": [ 51 ],
|
||||||
|
"MD035": [ 61 ],
|
||||||
|
"MD036": [ 65 ]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
test.deepEqual(actualResult, expectedResult, "Undetected issues.");
|
test.deepEqual(actualResult, expectedResult, "Undetected issues.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue