Markdown Previewer

Write Markdown on the left, see the rendered result on the right.
Markdown 0 chars
Preview

How Markdown rendering works

Markdown is a lightweight markup language designed to be readable as plain text and renderable as HTML. It's the standard for README files, blog posts, documentation, and any situation where you want formatted content without writing raw HTML.

The syntax

Markdown uses plain punctuation to indicate formatting. The most common elements:

# Heading 1 ## Heading 2 ### Heading 3 **bold** *italic* `inline code` - bullet list - another item 1. numbered 2. list > blockquote [link text](https://example.com) ![alt text](image.jpg) ```code fence```

This previewer supports all the standard Markdown elements โ€” headings, bold, italic, inline code, links, images, ordered and unordered lists, blockquotes, horizontal rules, fenced code blocks, and pipe-delimited tables.

How the parser works

The text is processed line by line. The parser first checks for block-level elements (headings, lists, blockquotes, code fences, tables, horizontal rules). Anything that doesn't match a block pattern is treated as a paragraph. Then, inline formatting (bold, italic, code, links, images) is applied to the content of those blocks.

The parser is intentionally conservative. It doesn't support every feature of every Markdown dialect โ€” no footnotes, no HTML inline, no MathJax. But it handles everything in the original Markdown spec plus the widely-used GFM tables extension.

Tables

Pipe-delimited tables are the trickiest part of Markdown. The format requires a header row, then a separator row of dashes, then optional data rows:

| Column 1 | Column 2 | |----------|----------| | Cell 1 | Cell 2 | | Cell 3 | Cell 4 |

Column alignment can be set with colons in the separator row โ€” :--- for left, :---: for center, ---: for right. The previewer respects these.

Common questions

โ† Back to Your Online Helper