code-block-style
New Since v0.1.0
Linter: a code block is fenced, so it can name its language, not indented.
Example#
doc.md:
Run:
make buildmarkright check reports:
doc.md:3: indented code block; fence it instead (code-block-style)
markright: 1 issue(s)Fixed:
Run:
```bash
make build
```Turning it off#
linters:
disable: [code-block-style][linters]
disable = ["code-block-style"]More in Rules.