| id | MDS034 |
|---|---|
| name | markdown-flavor |
| status | ready |
| description | Flags Markdown syntax that the declared target flavor does not render. |
Flags Markdown syntax that the declared target flavor does not render.
- ID: MDS034
- Name:
markdown-flavor - Status: ready
- Default: disabled
- Fixable: no (fix pipeline lands in a follow-up)
- Implementation: source
- Category: meta
| Key | Type | Description |
|---|---|---|
| flavor | string | Target flavor; see table below. |
The flavor name is case-sensitive. Supported values:
commonmark— strict CommonMark; rejects every tracked feature.gfm— GitHub Flavored Markdown; adds tables, task lists, strikethrough, and bare-URL autolinks.goldmark— mdsmith-defined profile; GFM plus heading IDs.pandoc— Pandoc's default markdown; GFM plus footnotes, definition lists, heading IDs, superscript, subscript, math block, and inline math. Rejects abbreviations (non-default extension).phpextra— PHP Markdown Extra; tables, footnotes, definition lists, heading IDs, and abbreviations. Rejects GFM features and math.multimarkdown— MultiMarkdown; PHP Extra plus math block and inline math.myst— MyST (Sphinx documentation flavor); tables, strikethrough, footnotes, definition lists, heading IDs, math block, and inline math.any— accepts every tracked feature. Use when the target renderer is unknown or permissive and you want to silence flavor diagnostics without disabling the rule.
Enable with a target flavor:
rules:
markdown-flavor:
flavor: gfmDisable (default):
rules:
markdown-flavor: falseMDS034 tracks twelve syntax features whose support varies across Markdown flavors.
Eleven features are detected from the goldmark AST of a dual parse. That parse enables five built-in extensions: table, strikethrough, task list, footnote, and definition list. It also enables the heading-ID attribute parser. Five custom parsers add superscript, subscript, math block, inline math, and abbreviations.
Bare-URL autolinks are detected separately. The detector scans text nodes from the main parse for URL-shaped text. It skips links, autolinks, code spans, and code blocks.
flavor: any accepts every feature and is omitted
from the table below.
| Feature | commonmark | gfm | goldmark | pandoc | phpextra | multimarkdown | myst |
|---|---|---|---|---|---|---|---|
| tables | no | yes | yes | yes | yes | yes | yes |
| task lists | no | yes | yes | yes | no | no | no |
| strikethrough | no | yes | yes | yes | no | no | yes |
| bare-URL autolinks | no | yes | yes | yes | no | no | no |
| footnotes | no | no | no | yes | yes | yes | yes |
| definition lists | no | no | no | yes | yes | yes | yes |
| heading IDs | no | no | yes | yes | yes | yes | yes |
| superscript | no | no | no | yes | no | no | no |
| subscript | no | no | no | yes | no | no | no |
| math blocks | no | no | no | yes | no | yes | yes |
| inline math | no | no | no | yes | no | yes | yes |
| abbreviations | no | no | no | no | yes | yes | no |
# Heading
Text with ~~old~~ markup and a task list:
- [x] done
- [ ] todo# Heading
| a | b |
| - | - |
| 1 | 2 |