Skip to content

Commit 78ca2c2

Browse files
committed
markdownlint-cli2: support standard input
1 parent 1e6b2ac commit 78ca2c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/lint/linters/markdownlint-cli2.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
local efm = "%f:%l:%c %m,%f:%l %m"
1+
local efm = "stdin:%l:%c %m,stdin:%l %m"
22
return {
33
cmd = "markdownlint-cli2",
4+
stdin = true,
5+
args = { "-" },
46
ignore_exitcode = true,
57
stream = "stderr",
68
parser = require("lint.parser").from_errorformat(efm, {

0 commit comments

Comments
 (0)