markdownlint-writer
Write or edit Markdown files while conforming to markdownlint rules used in this repo.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Markdownlint Writer
Use this skill whenever creating or editing .md files. It enforces markdownlint formatting rules so changes pass npm run lint:md.
Core rules to follow
- Surround headings with a blank line above and below.
- Surround lists with a blank line above and below.
- Do not use emphasis as a heading; use actual headings.
- Provide a language for fenced code blocks (e.g.,
ts,json,css). - Surround fenced code blocks with blank lines.
- Use consistent table spacing: add spaces around pipe separators.
- Avoid multiple consecutive blank lines.
Editing checklist (before save)
- Check headings have blank lines around them.
- Ensure every list has blank lines before and after.
- Ensure fenced code blocks include a language.
- Ensure fenced code blocks have blank lines before and after.
- Confirm tables use spaced pipes:
| Col | Col |. - Remove accidental double blank lines.
Validation
- Run
npm run lint:md -- <path>when asked to fix markdownlint issues. - If markdownlint still fails, scan for missing blank lines around headings/lists.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!