-
-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Labels
enhancementNew feature or requestNew feature or requestfixed in nextFixed in the "next" branch for the next releaseFixed in the "next" branch for the next release
Description
I am trying to integrate markdownlint-cli2 as an external formatter in Zed editor. To do so, the formatter should be able to read some content from stdin and outputting the formatted content to stdout. (See official Zed docs)
I found that markdownlint-cli2 is able to read from stdin using the glob argument -, but does not print the formatted content to stdout when used in conjunction with --fix. Maybe this is a normal/desired behavior ?
Thanks for your time !
What did you do?
$ echo "# Title\n\n\n\nContent" | markdownlint-cli2 - --fix
markdownlint-cli2 v0.18.1 (markdownlint v0.38.0)
Finding:
Linting: 1 file(s)
Summary: 2 error(s)
stdin:3 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]
stdin:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 3]What did you expect to happen?
I expected to get the formatted content as a direct output:
$ echo "# Title\n\n\n\nContent" | markdownlint-cli2 - --fix
# Title
ContentContext
- Tool version:
markdownlint-cli2 v0.18.1 (markdownlint v0.38.0) - Operating system:
macOS Sequoia 15.5
shihanng
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfixed in nextFixed in the "next" branch for the next releaseFixed in the "next" branch for the next release