[GH-ISSUE #217] MD014 only handles the first instance of $ command in a group #2033

Closed
opened 2026-03-07 20:03:53 +03:00 by kerem · 0 comments
Owner

Originally created by @TheJaredWilcurt on GitHub (Aug 27, 2019).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/217

MD014 only handles first instance of $ command. This is inconsistent with how it is documented.

✔️ This throws error:

$ ls

✔️ This does not:

$ ls
file.md other.md

This does not throw an error

$ ls
file.md other.md
$ git branch
$ cat stuff

This does not throw an error

asdf
$ ls
$ git branch
$ cat stuff
Originally created by @TheJaredWilcurt on GitHub (Aug 27, 2019). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/217 **MD014** only handles first instance of `$ command`. This is inconsistent with how it is documented. * https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md014---dollar-signs-used-before-commands-without-showing-output ✔️ This throws error: ```sh $ ls ``` ✔️ This does not: ```sh $ ls file.md other.md ``` ❌ This does not throw an error ```sh $ ls file.md other.md $ git branch $ cat stuff ``` ❌ This does not throw an error ```sh asdf $ ls $ git branch $ cat stuff ```
kerem 2026-03-07 20:03:53 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2033
No description provided.