Markdown Table Syntax Cheatsheet (GitHub Flavored Markdown)
Basic Markdown Table Structure
GitHub Flavored Markdown (GFM), Obsidian, Notion, and static site generators all share the same clean pipe-and-hyphen syntax. Every table requires a header row, a separator row of at least three hyphens per column, and one or more body rows:
| Column Left | Column Center | Column Right |
| :--- | :---: | ---: |
| Apple | 12 | $1.50 |
| Banana | 8 | $0.90 |
Three Common Edge Cases Solved
- Escaping a literal pipe (
|): Write\|or|inside a cell so the parser does not split an extra column. - Multi-line text inside one cell: Standard Markdown rows cannot contain raw newlines; insert an inline
<br>tag instead. - Inline code & links: Backticks (
`code`), bold (**text**), and links ([label](url)) all work normally inside table cells.
Skip Manual Pipe Alignment
Build tables visually with our Markdown Table Generator, convert spreadsheets instantly using CSV to Markdown, or preview your full document live in our Markdown Live Previewer.
Frequently Asked Questions
Do I need to pad spaces so vertical pipes line up visually in raw Markdown?
No—parsers only care about the pipe delimiters and separator hyphens, though aligned pipes make raw files easier for humans to read in Git diffs.
Can Markdown tables merge cells (colspan/rowspan)?
Standard GitHub Flavored Markdown does not support merged cells; if you need colspan or rowspan, embed a clean HTML <table> directly inside your Markdown file.