markdown-accessibility
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMarkdown Accessibility Skill
Markdown无障碍技能
Reusable knowledge module for the , , and agents and the always-on instructions. Provides pattern libraries, severity scoring, fix templates, emoji translation maps, diagram description templates, and GitHub anchor generation rules for comprehensive markdown accessibility auditing across 9 domains.
markdown-a11y-assistantmarkdown-scannermarkdown-fixermarkdown-accessibility这是供、、 Agent以及常驻指令使用的可复用知识模块,提供模式库、严重程度评分、修复模板、emoji翻译映射表、图表描述模板和GitHub锚点生成规则,可覆盖9个领域的完整Markdown无障碍审计能力。
markdown-a11y-assistantmarkdown-scannermarkdown-fixermarkdown-accessibilityDomains Covered
覆盖领域
- Descriptive Links (WCAG 2.4.4) - Ambiguous link text, bare URLs, repeated identical text
- Image Alt Text (WCAG 1.1.1) - Missing, empty, filename-as-alt, generic placeholders
- Heading Hierarchy (WCAG 1.3.1 / 2.4.6) - Skipped levels, multiple H1s, bold-as-heading
- Table Accessibility (WCAG 1.3.1) - Missing descriptions, empty headers, layout tables
- Emoji (WCAG 1.3.3 / Cognitive) - Remove-all, remove-decorative, translate, or leave-unchanged modes
- Mermaid and ASCII Diagrams (WCAG 1.1.1 / 1.3.1) - Replace with accessible text + collapsible source
- Em-Dash / En-Dash Normalization (Cognitive) - Normalize to or leave unchanged
- - Anchor Link Validation (WCAG 2.4.4) - Validate links against actual headings
#anchor - Plain Language and List Structure (Cognitive) - Emoji bullets, passive voice, sentence length
- 描述性链接(WCAG 2.4.4)- 模糊链接文本、裸URL、重复的相同链接文本
- 图片替代文本(WCAG 1.1.1)- 缺失、空值、文件名作为替代文本、通用占位符
- 标题层级(WCAG 1.3.1 / 2.4.6)- 跳过层级、多个H1、使用粗体代替标题
- 表格无障碍(WCAG 1.3.1)- 缺失描述、空表头、布局用表格
- Emoji(WCAG 1.3.3 / 认知)- 全部移除、移除装饰性emoji、翻译、保持不变四种模式
- Mermaid和ASCII图表(WCAG 1.1.1 / 1.3.1)- 替换为无障碍文本+可折叠源码
- 长破折号/短破折号标准化(认知)- 统一为或保持不变
- - 锚点链接验证(WCAG 2.4.4)- 对照实际标题校验链接的有效性
#anchor - 通俗语言与列表结构(认知)- Emoji项目符号、被动语态、句子长度
Severity Scoring
严重程度评分
| Issue | Severity | WCAG | Auto-fix? |
|---|---|---|---|
| Image missing alt text | Critical | 1.1.1 (A) | No - needs visual judgment |
| Mermaid diagram with no text alternative | Critical | 1.1.1 (A) | Partial - simple diagrams auto-described; complex need human |
| ASCII diagram with no text description | Critical | 1.1.1 (A) | Partial - flag and wrap; description needs human or auto-gen |
| Broken anchor link | Serious | 2.4.4 (A) | No - confirm which end changes |
| Ambiguous link text ("here", "click here") | Serious | 2.4.4 (A) | Yes - rewrite using surrounding context |
| Skipped heading level | Serious | 1.3.1 (A) | Yes - interpolate missing level |
| Multiple H1s | Serious | 1.3.1 (A) | Yes - demote all but first |
| Emoji in heading | Moderate | Cognitive | Yes - remove or translate per preference |
| Consecutive emoji (2+) | Moderate | 1.3.3 (A) | Yes - remove sequence or translate |
| Emoji used as bullet | Moderate | 1.3.1 (A) | Yes - replace with |
| Em-dash in prose | Moderate | Cognitive | Yes - replace with |
| Table without preceding description | Moderate | 1.3.1 (A) | Yes - add one-sentence summary |
| Bold text used as heading | Minor | 2.4.6 (AA) | Yes - convert to appropriate heading |
| Bare URL in prose | Minor | 2.4.4 (A) | Yes - wrap with descriptive text |
| Emoji used for meaning, single inline | Minor | 1.3.3 (A) | Conditional - remove-all: yes; remove-decorative: flag; translate: translate |
| 问题 | 严重程度 | WCAG | 可自动修复? |
|---|---|---|---|
| 图片缺失替代文本 | 危急 | 1.1.1 (A) | 否 - 需要视觉判断 |
| Mermaid图表没有文本替代 | 危急 | 1.1.1 (A) | 部分 - 简单图表可自动生成描述;复杂图表需要人工处理 |
| ASCII图表没有文本描述 | 危急 | 1.1.1 (A) | 部分 - 标记并包裹内容;描述需要人工生成或自动生成 |
| 锚点链接损坏 | 严重 | 2.4.4 (A) | 否 - 需要确认哪一端需要修改 |
| 模糊链接文本("here"、"click here") | 严重 | 2.4.4 (A) | 是 - 结合上下文重写 |
| 标题层级跳过 | 严重 | 1.3.1 (A) | 是 - 补全缺失的层级 |
| 多个H1标题 | 严重 | 1.3.1 (A) | 是 - 降级除第一个之外的所有H1 |
| 标题中包含Emoji | 中等 | 认知 | 是 - 按偏好移除或翻译 |
| 连续Emoji(2个及以上) | 中等 | 1.3.3 (A) | 是 - 移除序列或翻译 |
| 使用Emoji作为项目符号 | 中等 | 1.3.1 (A) | 是 - 替换为 |
| 正文中的长破折号 | 中等 | 认知 | 是 - 替换为 |
| 表格没有前置描述 | 中等 | 1.3.1 (A) | 是 - 添加一句话总结 |
| 使用粗体文本作为标题 | 轻微 | 2.4.6 (AA) | 是 - 转换为合适的标题层级 |
| 正文中的裸URL | 轻微 | 2.4.4 (A) | 是 - 用描述性文本包裹 |
| 单个行内表意Emoji | 轻微 | 1.3.3 (A) | 视情况而定:全部移除模式下可自动修复;移除装饰性模式下标记;翻译模式下自动翻译 |
Scoring Formula
评分公式
text
File Score = 100 - (sum of weighted findings)
Critical: -15 pts each
Serious: - 7 pts each
Moderate: - 3 pts each
Minor: - 1 pt each
Floor: 0text
文件得分 = 100 - (加权问题总和)
危急:每个扣15分
严重:每个扣7分
中等:每个扣3分
轻微:每个扣1分
最低分:0Score Grades
评分等级
| Score | Grade | Meaning |
|---|---|---|
| 90-100 | A | Excellent - accessible documentation |
| 75-89 | B | Good - minor issues |
| 50-74 | C | Needs Work - several barriers |
| 25-49 | D | Poor - significant barriers |
| 0-24 | F | Failing - critical AT barriers |
| 得分 | 等级 | 含义 |
|---|---|---|
| 90-100 | A | 优秀 - 无障碍适配完善的文档 |
| 75-89 | B | 良好 - 存在轻微问题 |
| 50-74 | C | 需要优化 - 存在多处访问障碍 |
| 25-49 | D | 较差 - 存在明显访问障碍 |
| 0-24 | F | 未通过 - 存在辅助技术访问的致命障碍 |
Emoji Handling Modes
Emoji处理模式
The agent supports four modes configured during Phase 0:
| Mode | Description | Default? |
|---|---|---|
| Strip every emoji from prose, headings, and bullets | No |
| Remove emoji in headings, bullets, and consecutive sequences; flag single inline for review | Yes (default) |
| Replace known emoji with | No |
| Do not flag or modify any emoji | No |
Agent支持在第0阶段配置的四种模式:
| 模式 | 描述 | 是否默认? |
|---|---|---|
| 移除正文、标题和项目符号中的所有emoji | 否 |
| 移除标题、项目符号和连续序列中的emoji;标记单个行内emoji供审核 | 是(默认) |
| 将已知emoji替换为 | 否 |
| 不标记也不修改任何emoji | 否 |
Emoji Translation Map
Emoji翻译映射表
When using mode, replace each emoji with the parenthesized English equivalent:
translate| Emoji | Translation | Emoji | Translation |
|---|---|---|---|
| 🚀 | (Launch) | ✅ | (Done) |
| ⚠️ | (Warning) | ❌ | (Error) |
| 📝 | (Note) | 💡 | (Tip) |
| 🔧 | (Configuration) | 📚 | (Documentation) |
| 🎯 | (Goal) | ✨ | (New) |
| 🔍 | (Search) | 🛠️ | (Tools) |
| 👋 | (Hello) | 🎉 | (Celebration) |
| ⭐ | (Featured) | 💬 | (Discussion) |
| 🏠 | (Home) | 📊 | (Data) |
| 🔒 | (Security) | 🌐 | (Web) |
| 📦 | (Package) | 🔗 | (Link) |
| 📋 | (Checklist) | 🏆 | (Achievement) |
| ⚡ | (Quick) | 👍 | (Approved) |
| 👎 | (Rejected) | 🐛 | (Bug) |
| 🤝 | (Collaboration) | 🎓 | (Learning) |
| 🔑 | (Key) | 📌 | (Pinned) |
| ℹ️ | (Info) | 🔄 | (Refresh) |
| ➕ | (Add) | ➖ | (Remove) |
| 💻 | (Code) | 🔔 | (Notification) |
| 📣 | (Announcement) | 🧪 | (Test) |
| 🎨 | (Design) | 🌟 | (Highlight) |
| 📈 | (Increase) | 📉 | (Decrease) |
| 🏗️ | (Build) | 🔐 | (Locked) |
| 📂 | (Folder) | 📁 | (Folder) |
| 🗂️ | (Category) | 🗃️ | (Archive) |
| ⚙️ | (Settings) | 🏁 | (Finish) |
| 🚧 | (In Progress) | 🚫 | (Not Allowed) |
| ✔️ | (Check) | ➡️ | (Next) |
| ⬆️ | (Up) | ⬇️ | (Down) |
For emoji not in this table: flag as . Do not guess.
needs-human-review使用模式时,将每个emoji替换为括号内的英文对等表述:
translate| Emoji | 翻译 | Emoji | 翻译 |
|---|---|---|---|
| 🚀 | (Launch) | ✅ | (Done) |
| ⚠️ | (Warning) | ❌ | (Error) |
| 📝 | (Note) | 💡 | (Tip) |
| 🔧 | (Configuration) | 📚 | (Documentation) |
| 🎯 | (Goal) | ✨ | (New) |
| 🔍 | (Search) | 🛠️ | (Tools) |
| 👋 | (Hello) | 🎉 | (Celebration) |
| ⭐ | (Featured) | 💬 | (Discussion) |
| 🏠 | (Home) | 📊 | (Data) |
| 🔒 | (Security) | 🌐 | (Web) |
| 📦 | (Package) | 🔗 | (Link) |
| 📋 | (Checklist) | 🏆 | (Achievement) |
| ⚡ | (Quick) | 👍 | (Approved) |
| 👎 | (Rejected) | 🐛 | (Bug) |
| 🤝 | (Collaboration) | 🎓 | (Learning) |
| 🔑 | (Key) | 📌 | (Pinned) |
| ℹ️ | (Info) | 🔄 | (Refresh) |
| ➕ | (Add) | ➖ | (Remove) |
| 💻 | (Code) | 🔔 | (Notification) |
| 📣 | (Announcement) | 🧪 | (Test) |
| 🎨 | (Design) | 🌟 | (Highlight) |
| 📈 | (Increase) | 📉 | (Decrease) |
| 🏗️ | (Build) | 🔐 | (Locked) |
| 📂 | (Folder) | 📁 | (Folder) |
| 🗂️ | (Category) | 🗃️ | (Archive) |
| ⚙️ | (Settings) | 🏁 | (Finish) |
| 🚧 | (In Progress) | 🚫 | (Not Allowed) |
| ✔️ | (Check) | ➡️ | (Next) |
| ⬆️ | (Up) | ⬇️ | (Down) |
不在本表中的emoji:标记为,不要猜测含义。
needs-human-reviewEmoji Detection Unicode Ranges
Emoji检测Unicode范围
[\u{1F600}-\u{1F64F}] - Emoticons
[\u{1F300}-\u{1F5FF}] - Misc symbols and pictographs
[\u{1F680}-\u{1F6FF}] - Transport and map symbols
[\u{1F700}-\u{1F77F}] - Alchemical symbols
[\u{1F780}-\u{1F7FF}] - Geometric shapes extended
[\u{1F900}-\u{1F9FF}] - Supplemental symbols
[\u{1FA70}-\u{1FAFF}] - Symbols and pictographs extended
[\u{2600}-\u{26FF}] - Misc symbols
[\u{2700}-\u{27BF}] - Dingbats
[\u{1F1E0}-\u{1F1FF}] - Flags
[\u{FE00}-\u{FE0F}] - Variation selectorsEmoji-as-bullet pattern: list item where the first non-whitespace character is an emoji.
[\u{1F600}-\u{1F64F}] - 表情符号
[\u{1F300}-\u{1F5FF}] - 杂项符号和象形图
[\u{1F680}-\u{1F6FF}] - 交通和地图符号
[\u{1F700}-\u{1F77F}] - 炼金术符号
[\u{1F780}-\u{1F7FF}] - 扩展几何形状
[\u{1F900}-\u{1F9FF}] - 补充符号
[\u{1FA70}-\u{1FAFF}] - 扩展符号和象形图
[\u{2600}-\u{26FF}] - 杂项符号
[\u{2700}-\u{27BF}] - 丁巴特符号
[\u{1F1E0}-\u{1F1FF}] - 旗帜
[\u{FE00}-\u{FE0F}] - 变体选择器Emoji作为项目符号的模式:列表项的第一个非空白字符为emoji。
Pattern Library: Mermaid and ASCII Diagrams
模式库:Mermaid和ASCII图表
Mermaid Detection
Mermaid检测
Lines matching (with optional leading spaces/tabs).
```mermaid匹配格式的行(允许前导空格/制表符)。
```mermaidMermaid Description Templates
Mermaid描述模板
| Type | Description Template |
|---|---|
| "The following [direction] diagram shows: [list major nodes and connections from source]" |
| "The following sequence diagram shows the interaction between [participants]: [list each message in order]" |
| "The following class diagram shows [N] classes: [list class names, key properties, and relationships]" |
| "The following entity-relationship diagram shows [entities] with these relationships: [list relationships]" |
| "The following Gantt chart shows project tasks: [list section names and tasks with dates if available]" |
| "The following pie chart shows [title] with values: [list each label and percentage/value if available]" |
| "The following state diagram shows [N] states: [list state names and transition triggers]" |
| "The following mind map shows [root topic] with branches: [list top-level branch names]" |
| "The following timeline shows events: [list events in chronological order]" |
Auto-generate description for: , , , , , .
Flag for human review: , , , (complex enough to need human verification).
graphflowchartpieganttmindmaptimelinesequenceDiagramclassDiagramerDiagramstateDiagram| 类型 | 描述模板 |
|---|---|
| "以下[方向]图表展示:[列出来源中的主要节点和连接]" |
| "以下序列图展示了[参与者]之间的交互:[按顺序列出每条消息]" |
| "以下类图展示了[N]个类:[列出类名、核心属性和关系]" |
| "以下实体关系图展示了[实体]及对应关系:[列出关系]" |
| "以下甘特图展示了项目任务:[列出分区名称和任务(若有日期也一并列出)]" |
| "以下饼图展示了[标题]对应数值:[列出每个标签和百分比/数值(若有)]" |
| "以下状态图展示了[N]个状态:[列出状态名和转换触发条件]" |
| "以下思维导图展示了[根主题]及分支:[列出顶层分支名称]" |
| "以下时间线展示了相关事件:[按时间顺序列出事件]" |
支持自动生成描述的类型:、、、、、。
需要标记供人工审核的类型:、、、(复杂度较高,需要人工验证)。
graphflowchartpieganttmindmaptimelinesequenceDiagramclassDiagramerDiagramstateDiagramMermaid Replacement Template
Mermaid替换模板
markdown
[Generated or user-provided text description - this is the primary accessible content]
<details>
<summary>Diagram source (Mermaid)</summary>
```mermaid
[original diagram source - unchanged]markdown
[自动生成或用户提供的文本描述 - 这是核心无障碍内容]
<details>
<summary>图表源码(Mermaid)</summary>
```mermaid
[原始图表源码 - 保持不变]ASCII Diagram Detection
ASCII图表检测
ASCII art patterns: non-code-block lines (or unnamed code blocks) containing combinations of , , , , , , , , , forming a visual structure. Minimum 3 lines with consistent column alignment.
+-|/\><^v*ASCII艺术模式:非代码块行(或未命名代码块)包含、、、、、、、、、的组合,构成可视化结构,至少3行且列对齐一致。
+-|/\><^v*ASCII Diagram Replacement Template
ASCII图表替换模板
markdown
[Generated or user-provided text description - this is the primary accessible content]
<details>
<summary>ASCII diagram</summary>
[original ASCII art - unchanged]
</details>markdown
[自动生成或用户提供的文本描述 - 这是核心无障碍内容]
<details>
<summary>ASCII图表</summary>
[原始ASCII艺术 - 保持不变]
</details>Pattern Library: Ambiguous Link Detection
模式库:模糊链接检测
Match these patterns (case-insensitive, trim whitespace):
匹配以下模式(不区分大小写,修剪空白字符):
Exact-match violations
精确匹配违规项
here, click here, read more, learn more, more, more info,
link, details, info, go, see more, continue, start, download,
view, open, submit, this, thathere, click here, read more, learn more, more, more info,
link, details, info, go, see more, continue, start, download,
view, open, submit, this, thatStarts-with violations
开头匹配违规项
click here to ..., read more about ..., learn more about ...,
here to ..., see more ...click here to ..., read more about ..., learn more about ...,
here to ..., see more ...URL-as-text pattern
URL作为文本模式
Any link where visible text matches or
https?://www\.任何可见文本匹配或的链接。
https?://www\.Repeated identical text
重复相同文本
Multiple and with same X but different URLs on the same page.
[X](url1)[X](url2)同一页面中存在多个和,X相同但URL不同。
[X](url1)[X](url2)Safe patterns (do not flag)
安全模式(不标记)
- Badge links: at top of README
[](url) - Section self-references: where text matches heading
[Installation](#installation) - Footer resource lists using the resource/tool name as text
- 徽章链接:README顶部的
[](url) - 章节自引用:,文本与标题匹配
[Installation](#installation) - 页脚资源列表,使用资源/工具名称作为链接文本
Pattern Library: GitHub Anchor Generation
模式库:GitHub锚点生成
GitHub converts headings to anchor IDs using these rules:
- Lowercase entire string
- Remove all characters except: letters (a-z), digits (0-9), spaces, hyphens
- Replace spaces with hyphens
- Remove leading and trailing hyphens
GitHub通过以下规则将标题转换为锚点ID:
- 整个字符串转为小写
- 移除所有字符,仅保留:字母(a-z)、数字(0-9)、空格、连字符
- 将空格替换为连字符
- 移除首尾的连字符
Examples
示例
| Heading | Anchor |
|---|---|
| |
| |
| |
| |
| |
| |
| |
For headings containing emoji: GitHub strips the emoji character and generates an anchor from the remaining text. Anchors referencing emoji-containing headings are fragile and should be flagged.
| 标题 | 锚点 |
|---|---|
| |
| |
| |
| |
| |
| |
| |
包含emoji的标题:GitHub会移除emoji字符,基于剩余文本生成锚点。引用包含emoji标题的锚点稳定性较差,应当标记。
Pattern Library: Emoji Detection
模式库:Emoji检测
Unicode emoji ranges for regex detection:
[\u{1F600}-\u{1F64F}] # Emoticons
[\u{1F300}-\u{1F5FF}] # Misc symbols and pictographs
[\u{1F680}-\u{1F6FF}] # Transport and map symbols
[\u{1F700}-\u{1F77F}] # Alchemical symbols
[\u{1F780}-\u{1F7FF}] # Geometric shapes extended
[\u{1F800}-\u{1F8FF}] # Supplemental arrows-C
[\u{1F900}-\u{1F9FF}] # Supplemental symbols and pictographs
[\u{1FA00}-\u{1FA6F}] # Chess symbols
[\u{1FA70}-\u{1FAFF}] # Symbols and pictographs extended-A
[\u{2600}-\u{26FF}] # Misc symbols
[\u{2700}-\u{27BF}] # Dingbats
[\u{FE00}-\u{FE0F}] # Variation selectors
[\u{1F1E0}-\u{1F1FF}] # FlagsEmoji-as-bullet pattern: List item where first non-whitespace character is an emoji.
用于正则检测的Unicode emoji范围:
[\u{1F600}-\u{1F64F}] # 表情符号
[\u{1F300}-\u{1F5FF}] # 杂项符号和象形图
[\u{1F680}-\u{1F6FF}] # 交通和地图符号
[\u{1F700}-\u{1F77F}] # 炼金术符号
[\u{1F780}-\u{1F7FF}] # 扩展几何形状
[\u{1F800}-\u{1F8FF}] # 补充箭头-C
[\u{1F900}-\u{1F9FF}] # 补充符号和象形图
[\u{1FA00}-\u{1FA6F}] # 国际象棋符号
[\u{1FA70}-\u{1FAFF}] # 扩展符号和象形图-A
[\u{2600}-\u{26FF}] # 杂项符号
[\u{2700}-\u{27BF}] # 丁巴特符号
[\u{FE00}-\u{FE0F}] # 变体选择器
[\u{1F1E0}-\u{1F1FF}] # 旗帜Emoji作为项目符号的模式:列表项的第一个非空白字符为emoji。
Pattern Library: Em-Dash and En-Dash
模式库:长破折号和短破折号
Detection patterns:
— Unicode em-dash (U+2014)
– Unicode en-dash (U+2013)
--- Three hyphens in prose (not on its own line as HR)
-- Two hyphens in prose (used as em-dash substitute)Safe to skip (do not modify):
- Line containing only (horizontal rule)
--- - Content inside code fences
``` - Content inside backtick inline code
- YAML front matter block
- HTML comment blocks
<!-- -->
Replacement: (space + hyphen + space)
-En-dash in numeric ranges: ->
2–4 hours2 - 4 hours检测模式:
— Unicode长破折号(U+2014)
– Unicode短破折号(U+2013)
--- 正文中的三个连字符(不是单独成行的水平分隔线)
-- 正文中的两个连字符(用作长破折号替代)可跳过的安全场景(不修改):
- 仅包含的行(水平分隔线)
--- -
undefined - 反引号包裹的行内代码内容
- YAML前置元数据块
- HTML注释块
<!-- -->
替换为:(空格+连字符+空格)
-数字范围中的短破折号: ->
2–4 hours2 - 4 hoursPattern Library: Mermaid Diagrams
模式库:Mermaid图表
Detection: Lines matching (with optional leading spaces/tabs)
```mermaidDiagram types and description guidance:
| Type | Description Template |
|---|---|
| "The following diagram shows a [direction] flowchart: [list major nodes and connections]" |
| "The following sequence diagram shows the interaction between [participants]: [list message exchanges]" |
| "The following class diagram shows [N] classes: [list class names and key relationships]" |
| "The following entity-relationship diagram shows [entities] and their relationships: [list relationships]" |
| "The following Gantt chart shows project phases: [list tasks and timeframes]" |
| "The following pie chart shows [title] with values: [list segment names and values if available]" |
| "The following state diagram shows [N] states and transitions: [list states and transition triggers]" |
Wrapping template:
markdown
[Generated or user-provided text description]
<details>
<summary>Diagram source (Mermaid)</summary>
```mermaid
[original diagram source]检测:匹配格式的行(允许前导空格/制表符)
```mermaid图表类型和描述指南:
| 类型 | 描述模板 |
|---|---|
| "以下图表展示了一个[方向]流程图:[列出主要节点和连接]" |
| "以下序列图展示了[参与者]之间的交互:[列出消息交互]" |
| "以下类图展示了[N]个类:[列出类名和核心关系]" |
| "以下实体关系图展示了[实体]及其关系:[列出关系]" |
| "以下甘特图展示了项目阶段:[列出任务和时间范围]" |
| "以下饼图展示了[标题]对应数值:[列出分段名称和数值(若有)]" |
| "以下状态图展示了[N]个状态和转换:[列出状态和转换触发条件]" |
包裹模板:
markdown
[自动生成或用户提供的文本描述]
<details>
<summary>图表源码(Mermaid)</summary>
```mermaid
[原始图表源码]Fix Templates
修复模板
Ambiguous link fix
模糊链接修复
markdown
undefinedmarkdown
undefinedBefore
修复前
After
修复后
For more information, see the installation guide.
undefinedFor more information, see the installation guide.
undefinedEmoji bullet fix
Emoji项目符号修复
markdown
undefinedmarkdown
undefinedBefore
修复前
- 🚀 Deploy to production
- ✅ Run tests
- 🚀 Deploy to production
- ✅ Run tests
After
修复后
- Deploy to production
- Run tests
undefined- Deploy to production
- Run tests
undefinedEmoji heading fix
Emoji标题修复
markdown
undefinedmarkdown
undefinedBefore
修复前
🔧 Configuration
🔧 Configuration
After
修复后
Configuration
Configuration
undefinedundefinedEm-dash fix
长破折号修复
markdown
undefinedmarkdown
undefinedBefore
修复前
The agent—when invoked—will scan all files.
The agent—when invoked—will scan all files.
After
修复后
The agent - when invoked - will scan all files.
undefinedThe agent - when invoked - will scan all files.
undefinedTable description fix
表格描述修复
markdown
undefinedmarkdown
undefinedBefore
修复前
| Rule | Severity | Auto-fix |
|---|
| Rule | Severity | Auto-fix |
|---|
After
修复后
The following table lists rules with their severity level and whether they can be fixed automatically.
| Rule | Severity | Auto-fix |
|---|
undefinedThe following table lists rules with their severity level and whether they can be fixed automatically.
| Rule | Severity | Auto-fix |
|---|
undefinedBroken anchor fix
损坏锚点修复
markdown
undefinedmarkdown
undefinedBefore (broken)
修复前(损坏)
See Installation for setup steps.
See Installation for setup steps.
Heading in file
文件中的标题
Installation
Installation
After (corrected)
修复后(已校正)
See Installation for setup steps.
undefinedSee Installation for setup steps.
undefinedMarkdownlint Rules Reference
Markdownlint规则参考
| Rule | Name | Accessibility Relevance |
|---|---|---|
| MD001 | heading-increment | Heading hierarchy (WCAG 1.3.1) |
| MD022 | blanks-around-headings | Parsing reliability |
| MD024 | no-duplicate-heading | Unique section identity (WCAG 2.4.6) |
| MD025 | single-title / single-h1 | One H1 per document |
| MD033 | no-inline-html | May hide structure from parsers |
| MD034 | no-bare-urls | Ambiguous links (WCAG 2.4.4) |
| MD041 | first-line-heading | Document structure |
| MD055 | table-pipe-style | Table parsing consistency |
| MD056 | table-column-count | Table structural integrity |
Command:
npx --yes markdownlint-cli2 <filepath>| 规则 | 名称 | 无障碍相关性 |
|---|---|---|
| MD001 | heading-increment | 标题层级(WCAG 1.3.1) |
| MD022 | blanks-around-headings | 解析可靠性 |
| MD024 | no-duplicate-heading | 唯一章节标识(WCAG 2.4.6) |
| MD025 | single-title / single-h1 | 每个文档仅一个H1 |
| MD033 | no-inline-html | 可能对解析器隐藏结构 |
| MD034 | no-bare-urls | 模糊链接(WCAG 2.4.4) |
| MD041 | first-line-heading | 文档结构 |
| MD055 | table-pipe-style | 表格解析一致性 |
| MD056 | table-column-count | 表格结构完整性 |
命令:
npx --yes markdownlint-cli2 <filepath>