GUIDE深度 · Deep dive

Markdown Table Syntax

A standard Markdown table separates columns with |, uses a --- separator row, and controls alignment with colons. Escape pipes inside cells as \| or they create extra columns.

更新 2026-10-31 · 公式可核验

Basic syntax

Header: | A | B |.

Separator: | --- | --- |.

Alignment: :--- left, :---: center, ---: right.

Caveats

Leave a blank line before the table or it may not render.

Renderers differ on escaping and line breaks.

FAQ

Can cells contain line breaks?

Standard syntax does not; use <br> or split the table.

Can Markdown tables sort?

No; sort before generating.

Sources

Related calculators

Markdown Table GeneratorTurn CSV or TSV into a Markdown table with headers and quote escaping.

More guides

CSV to Markdown PitfallsRead guide