Update break-all-the-rules.md for new rules, fix bug in MD033.

This commit is contained in:
David Anson 2015-04-16 09:39:04 -07:00
parent 5d6d9d2b3b
commit f1cd4e0fbb
3 changed files with 41 additions and 4 deletions

View file

@ -624,10 +624,13 @@ module.exports = [
"desc": "Inline HTML",
"tags": [ "html" ],
"func": function MD033(params, errors) {
filterTokens(params.tokens, "html_inline", "html_block")
filterTokens(params.tokens, "html_block")
.forEach(function forToken(token) {
errors.push(token.lineNumber);
});
forEachInlineChild(params, "html_inline", function forToken(token) {
errors.push(token.lineNumber);
});
}
},

View file

@ -47,5 +47,29 @@ Note: Can not break MD025 and MD002 in the same file
2. list {MD029}
```js
``` {MD031}
```
* 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}
```

View file

@ -389,7 +389,15 @@ module.exports.styleAll = function styleAll(test) {
"MD029": [ 47 ],
"MD030": [ 8 ],
"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.");
@ -424,7 +432,9 @@ module.exports.styleRelaxed = function styleRelaxed(test) {
"MD026": [ 40 ],
"MD029": [ 47 ],
"MD031": [ 50 ],
"MD032": [ 51 ]
"MD032": [ 51 ],
"MD035": [ 61 ],
"MD036": [ 65 ]
}
};
test.deepEqual(actualResult, expectedResult, "Undetected issues.");