mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
33 lines
611 B
Markdown
33 lines
611 B
Markdown
The following code block shouldn't have $ before the commands:
|
|
|
|
$ ls {MD014}
|
|
$ less foo
|
|
|
|
$ cat bar
|
|
|
|
However the following code block shows output, and $ can be used to
|
|
distinguish between command and output:
|
|
|
|
$ ls
|
|
foo bar
|
|
$ less foo
|
|
Hello world
|
|
|
|
$ cat bar
|
|
baz
|
|
|
|
The following code block uses variable names, and likewise shouldn't fire:
|
|
|
|
$foo = 'bar';
|
|
$baz = 'qux';
|
|
|
|
The following code block doesn't have any dollar signs, and shouldn't fire:
|
|
|
|
ls foo
|
|
cat bar
|
|
|
|
The following (fenced) code block doesn't have any content at all, and
|
|
shouldn't fire:
|
|
|
|
```bash
|
|
```
|