Skip to content

Commit 53fc2de

Browse files
author
folgerfan
committed
fix: 更正markdownlint-cli2用法
1 parent b79695f commit 53fc2de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/markdown/markdownlint-cli2/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ linting Markdown files with the markdownlint。
55
## 在 Docker 上使用
66

77
```shell
8-
docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) davidanson/markdownlint-cli2 **/*.md
8+
docker run --rm -it -w /myfolder -v $(pwd):/myfolder -u root davidanson/markdownlint-cli2 docs/**/*.md
9+
10+
docker run --rm -it -w /myfolder -v $(pwd):/myfolder -u root davidanson/markdownlint-cli2 --fix docs/**/*.md
911
```
1012

1113
尝试自动修复检查过程中发现的问题

0 commit comments

Comments
 (0)