| id | MDS066 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| name | commands-show-output | |||||||||
| status | ready | |||||||||
| description | A fenced code block whose every non-blank line begins with `$ ` and shows no output must drop the prompt. | |||||||||
| nature | style | |||||||||
| category | code | |||||||||
| maintainability | ||||||||||
| markdownlint |
|
|||||||||
| rumdl |
|
|||||||||
| mado |
|
|||||||||
| panache | ||||||||||
| obsidian-linter | ||||||||||
| gomarklint |
A fenced code block whose every non-blank line begins
with $ and shows no output must drop the prompt.
Enable (default):
rules:
commands-show-output: trueDisable:
rules:
commands-show-output: falsemdsmith fix strips the leading $ from every non-blank
content line of the offending block. Blank lines pass through
unchanged. Only fenced code blocks are inspected; indented
blocks are out of scope.
# Title
A block that shows both commands and their output is fine:
```sh
$ ls
foo bar
$ pwd
/home/user
```# Title
A block that has no `$ ` prefixes is fine:
```sh
ls
pwd
```# Title
Commands shown with `$` and no output:
```sh
$ ls
$ pwd
```