mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-29 12:08:48 +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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue