lint-markdown
Check and fix formatting and other issues in markdown files using markdownlint-cli2.
来源信息
- 仓库
- Azure/azure-sdk-for-rust
- 最近来源活动
- 2026年8月31日 16:48
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 885
- Forks
- 375
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- lint-markdown
- description
- Check and fix formatting and other issues in markdown files using markdownlint-cli2.
# Markdown linting
Check markdown files for common mistakes.
## Installation and usage
Find the nearest `package.json` in the current directory or an ancestor through the
repository root that lists `markdownlint-cli2` in `devDependencies`. Run `npm ci`
from that directory, then run `npx markdownlint-cli2 <command>` from the current
directory.
## Configuration
Configuration is in the repository root `.markdownlint-cli2.yaml`.
Use the schema matching the installed `markdownlint-cli2` version. Nest markdownlint
rules under `config` and use friendly names such as `line-length` instead of `MD013`.
## Check Markdown
Lint an explicit list of modified markdown files:
```bash
npx markdownlint-cli2 --no-globs <files...>
```
## Fix issues
Fix supported issues in an explicit list of files:
```bash
npx markdownlint-cli2 --no-globs --fix <files...>
```
## Testing
Run the check command again. Report any remaining issues.
在 GitHub 查看