MOMO INTERACTIVE TOOLGitHub Flavored Markdown Tables

Markdown Table Generator & GFM Syntax Guide

Edit cells visually, toggle column alignment, and copy padded GFM Markdown in one click.

Hand-typing pipe-delimited Markdown table syntax gets tedious fast, especially when numeric columns need right alignment or cells contain literal | characters. Build clean, vertically aligned GFM tables locally in your browser below — zero data ever leaves your Mac.

3 rows × 3 columns · GFM Markdown
Visual Table Grid (Click Any Cell or Align Header)Auto-Escapes Pipes
Generated Markdown TableGitHub Flavored

MARKDOWN TABLE SYNTAX EXPLAINED

How GitHub Flavored Markdown tables work

Original CommonMark did not include tables, so the industry standardized on the GitHub Flavored Markdown (GFM) table extension. Every modern renderer — GitHub, GitLab, Notion imports, VS Code, Obsidian, and Momo — follows the same three-part structure for a valid Markdown table.

Alignment / Feature Delimiter Syntax Rendered Behavior Common Use Case
Default / Left Align --- or :--- Text hugs the left edge of the cell Names, feature labels, endpoint paths, notes
Center Align :---: Content centers horizontally in the column Status badges, checkmarks, short version tags
Right Align ---: Digits line up along the right edge Latencies, memory usage, prices, benchmark scores
Escaped Pipe \| inside cell text Displays a literal vertical bar without splitting columns TypeScript union types (string \| null), CLI pipes
Line Break in Cell <br> inline tag Wraps cell copy onto a second line cleanly Multi-line descriptions, addresses, or bulleted caveats
  • Three required parts of every table

    First, a header row separating column titles with pipes (|). Second, a delimiter row with the exact same number of columns using at least three hyphens per column (| --- | --- |). Third, zero or more body rows. If the column count in the header and delimiter rows does not match, GitHub stops parsing the block as a table and shows raw pipes instead.

  • Inline formatting works inside cells

    You can freely use bold, italics, inline code, links, strikethrough, and even inline images inside any Markdown table cell. Block-level elements like multi-line fenced code blocks, headings, and nested lists are not supported natively in GFM tables — switch to a lightweight HTML table only when a spec truly requires multi-block cells.

  • Leading and trailing pipes

    Although GFM technically allows omitting the outer pipes on each line, always include leading and trailing pipes (| Col A | Col B |). Outer pipes prevent ambiguity when the first or last cell is intentionally empty and keep Prettier and markdownlint happy across repositories.

REAL-WORLD TABLE TRICKS

Avoiding broken tables in READMEs & AI specs

When developers and coding agents like Claude Code or Codex generate benchmark tables, API parameter matrices, and migration checklists, three quick habits keep every Markdown table readable both in raw Git diffs and rendered previews.

  1. 1. Leave a blank line above and below

    Always surround a table with empty lines so it never fuses into the preceding paragraph or list item. Without a leading blank line, strict parsers treat the header row as continuation text and dump raw pipe characters onto your page.

  2. 2. Watch out for pipes inside inline code

    One famous GFM quirk: even inside backticks like `a | b`, pipes split table columns unless escaped as `a \| b`. Our visual generator above automatically escapes every | you type so TypeScript unions and shell pipelines never shatter your column count.

  3. 3. Inspect wide tables natively on Mac

    Wide comparison matrices feel cramped in a terminal window. Opening your repo in Momo — a native Swift + AppKit Markdown viewer for Mac — gives you crisp typography, horizontal scrolling when needed, and inline ⌥⌘M review comments to tell Claude Code or Codex which cell needs updating without manually re-aligning pipes.

PLATFORM COMPATIBILITY

Where GitHub Flavored Markdown tables work out of the box

Every table generated by this tool follows the exact GitHub Flavored Markdown specification, meaning the output you copy pastes cleanly across developer platforms, documentation frameworks, and desktop Markdown editors without extra plugins.

Platform / Editor GFM Tables Column Alignment Notes for Developers
GitHub & GitLab Built-in Full (:---, :---:, ---:) Renders in READMEs, PR descriptions, issues, and wiki pages
Momo (macOS 14+) Native Swift + AppKit Full + resizable columns Edits plain .md on disk; supports ⌥⌘M MCP review comments
VS Code & Cursor Built-in preview Full Pair with Prettier to keep raw pipe spacing aligned on save
Obsidian & Typora Built-in visual grid Full Good for personal notes; watch Electron RAM on 15k-file repos
Hugo, Astro & Next.js MDX Built-in / remark-gfm Full Enable remark-gfm in MDX pipelines so pipes render as HTML tables

FAQ

Markdown table — common questions

Answers to the most common GitHub Flavored Markdown table syntax questions.

How do you align columns in a Markdown table?

Place colons in the second (delimiter) row: :--- aligns left, :---: centers the column, and ---: aligns numbers and dates to the right. Click any Align button in the generator above to see the exact delimiter row update live.

How do you put a pipe (|) inside a Markdown table cell?

Escape it with a backslash (\|) or write the HTML entity &#124;. Remember that in GitHub Flavored Markdown you must still escape pipes even when they appear inside inline code backticks.

Can you merge cells (colspan or rowspan) in a Markdown table?

No. Standard GitHub Flavored Markdown tables do not support merged cells. If a layout genuinely requires colspan or rowspan, embed a standard HTML <table> directly inside your Markdown file.

Does Momo format and render GFM tables natively on macOS?

Yes. Momo renders GFM tables, column alignments, inline code, task lists, Mermaid diagrams, and KaTeX equations natively in Swift + AppKit while leaving your plain .md files untouched on disk.