mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-09 17:38:50 +01:00
Add MD038, MD039 with tests.
This commit is contained in:
parent
b85e53a9c4
commit
7e431f4499
6 changed files with 98 additions and 11 deletions
|
|
@ -498,7 +498,7 @@ module.exports.badFileSync = function badFileSync(test) {
|
|||
};
|
||||
|
||||
module.exports.readme = function readme(test) {
|
||||
test.expect(88);
|
||||
test.expect(92);
|
||||
var tagToRules = {};
|
||||
rules.forEach(function forRule(rule) {
|
||||
rule.tags.forEach(function forTag(tag) {
|
||||
|
|
@ -555,7 +555,7 @@ module.exports.readme = function readme(test) {
|
|||
};
|
||||
|
||||
module.exports.doc = function doc(test) {
|
||||
test.expect(135);
|
||||
test.expect(143);
|
||||
fs.readFile("doc/Rules.md", shared.utf8Encoding,
|
||||
function readFile(err, contents) {
|
||||
test.ifError(err);
|
||||
|
|
|
|||
7
test/spaces_inside_codespan_elements.md
Normal file
7
test/spaces_inside_codespan_elements.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
`normal codespan element`
|
||||
|
||||
` codespan element with space inside left` {MD038}
|
||||
|
||||
`codespan element with space inside right ` {MD038}
|
||||
|
||||
` codespan element with spaces inside ` {MD038}
|
||||
10
test/spaces_inside_link_text.md
Normal file
10
test/spaces_inside_link_text.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[foo](http://bar/)
|
||||
|
||||
[foo ](http://bar/) {MD039}
|
||||
|
||||
[ foo](http://bar/) {MD039}
|
||||
|
||||
[ foo ](http://bar/) {MD039}
|
||||
|
||||
The following shouldn't break anything:
|
||||
[](/images/Screenshot.png)
|
||||
Loading…
Add table
Add a link
Reference in a new issue