mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update MD014/commands-show-output to report each violation, include fix information (fixes #217).
This commit is contained in:
parent
1edb3f0a78
commit
c4f77e021d
4 changed files with 81 additions and 33 deletions
|
|
@ -1,9 +1,9 @@
|
|||
The following code block shouldn't have $ before the commands:
|
||||
|
||||
$ ls {MD014}
|
||||
$ less foo
|
||||
$ less foo {MD014}
|
||||
|
||||
$ cat bar
|
||||
$ cat bar {MD014}
|
||||
|
||||
However the following code block shows output, and $ can be used to
|
||||
distinguish between command and output:
|
||||
|
|
@ -31,3 +31,19 @@ shouldn't fire: {MD046:32}
|
|||
|
||||
```bash
|
||||
```
|
||||
|
||||
Mixed content:
|
||||
|
||||
$ ls
|
||||
file.md other.md
|
||||
$ git branch {MD014}
|
||||
$ cat stuff {MD014}
|
||||
|
||||
output
|
||||
$ ls {MD014}
|
||||
$ git branch {MD014}
|
||||
$ cat stuff
|
||||
stuff here
|
||||
more stuff
|
||||
$ tail cat
|
||||
meow
|
||||
|
|
|
|||
|
|
@ -1,36 +1,43 @@
|
|||
# heading
|
||||
|
||||
```fence
|
||||
$ code
|
||||
```
|
||||
|
||||
text
|
||||
|
||||
```fence
|
||||
$ code
|
||||
```
|
||||
|
||||
text
|
||||
|
||||
```fence
|
||||
$ code
|
||||
$ code
|
||||
$ code {MD014}
|
||||
```
|
||||
|
||||
text
|
||||
|
||||
```fence
|
||||
$ code {MD014}
|
||||
```
|
||||
|
||||
text
|
||||
|
||||
```fence
|
||||
$ code {MD014}
|
||||
$ code {MD014}
|
||||
```
|
||||
|
||||
text
|
||||
|
||||
```fence
|
||||
$ code {MD014}
|
||||
$ code {MD014}
|
||||
```
|
||||
|
||||
text
|
||||
|
||||
```fence
|
||||
$ code
|
||||
code
|
||||
$ code
|
||||
code
|
||||
```
|
||||
|
||||
text
|
||||
|
||||
```sh
|
||||
|
||||
$ npm install --save multimatch
|
||||
$ npm install --save multimatch {MD014}
|
||||
```
|
||||
|
||||
text
|
||||
|
||||
{MD014:3} {MD014:9} {MD014:15} {MD014:22} {MD014:29}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ A [reversed](link) example.
|
|||
|
||||
## 123456789 123456789 123456789 123456789 123456789 123456789
|
||||
|
||||
$ command with no output
|
||||
command with no output
|
||||
|
||||
## No space A
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue