MDS066: commands-show-output
A fenced code block whose every non-blank line begins
with $ and shows no output must drop the prompt.
# Config
Enable (default):
rules:
commands-show-output: trueDisable:
rules:
commands-show-output: false# Autofix
mdsmith 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.
# Examples
# Good — block shows output
# Title
A block that shows both commands and their output is fine:
```sh
$ ls
foo bar
$ pwd
/home/user
```#
Good — no $ prompts
# Title
A block that has no `$ ` prefixes is fine:
```sh
ls
pwd
```# Bad — only commands, no output
# Title
Commands shown with `$` and no output:
```sh
$ ls
$ pwd
```