mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add MD033 with tests, rename test file.
This commit is contained in:
parent
1da7064094
commit
495fbac6fd
9 changed files with 49 additions and 5 deletions
13
test/inline_html.md
Normal file
13
test/inline_html.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Regular header
|
||||
|
||||
<h1>Inline HTML Header {MD033}</h1>
|
||||
|
||||
<p>More inline HTML {MD033}
|
||||
but this time on multiple lines
|
||||
</p>
|
||||
|
||||
<h1>This shouldn't trigger as it's inside a code block</h1>
|
||||
|
||||
```text
|
||||
<p>Neither should this as it's also in a code block</p>
|
||||
```
|
||||
|
|
@ -498,7 +498,7 @@ module.exports.badFileSync = function badFileSync(test) {
|
|||
};
|
||||
|
||||
module.exports.readme = function readme(test) {
|
||||
test.expect(143);
|
||||
test.expect(144);
|
||||
fs.readFile("README.md", shared.utf8Encoding,
|
||||
function readFile(err, contents) {
|
||||
test.ifError(err);
|
||||
|
|
@ -555,7 +555,7 @@ module.exports.readme = function readme(test) {
|
|||
};
|
||||
|
||||
module.exports.doc = function doc(test) {
|
||||
test.expect(87);
|
||||
test.expect(90);
|
||||
fs.readFile("doc/Rules.md", shared.utf8Encoding,
|
||||
function readFile(err, contents) {
|
||||
test.ifError(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue