MD097 - Table headers should not contain inline formatting¶
Aliases: no-formatting-in-table-headers
This rule is off by default.
Enable MD097 when your project uses plain text for column labels. It reports inline code, strong emphasis and emphasis in the header cells of GitHub Flavored Markdown (GFM) pipe tables. Formatting in body cells is allowed.
Each of these three header cells produces a warning.
| **Name** | `Type` | *Description* |
| -------- | ------ | ------------- |
| id | `int` | User ID |
Plain labels clear all three warnings.
This configuration allows code spans and reports both kinds of emphasis.
All three switches default to true when the rule is enabled. Escaped markers
and literal underscores in names such as user_id are plain text. The rule
offers no automatic fix because removing markup can change how a label renders.
For the corresponding options in headings, see MD093.