Markdown Preview
About the Markdown Preview
This Markdown preview editor renders GitHub-flavored Markdown live as you type: headings, nested lists, task lists, tables, fenced code blocks and more. When the document looks right, copy the HTML or download it as a standalone .html file.
Supported Markdown syntax
Headings (# to ######), bold (**text**), italic (*text*), strikethrough (~~text~~), inline code, blockquotes, links, images and horizontal rules all render as you would expect on GitHub.
GitHub extensions are supported too: task lists (- [ ] and - [x]), tables with column alignment (:---, :---:, ---:), fenced code blocks with three backticks, and bare URLs that turn into links automatically.
Why raw HTML is shown as text
Many Markdown renderers pass HTML straight through, which lets a pasted <script> or <img onerror> run code in your browser. This preview escapes all HTML in the source and only allows http, https, mailto, tel and relative link URLs, so javascript: links are blocked.
The exported HTML follows the same rules, so it is safe to paste into a CMS or email template.
Line breaks in Markdown
A single newline inside a paragraph does not start a new line in Markdown. End the line with two spaces or a backslash for a hard break, or leave a blank line to start a new paragraph.
How to Use the Markdown Preview
- Type or paste Markdown into the Markdown Editor panel.
- Watch the Live Preview update as you type. Use Hide Preview to give the editor the full width.
- Copy the Markdown or the generated HTML with the Copy buttons.
- Use Download Markdown to save a .md file, or Download HTML for a complete HTML document.
- Press Clear to start a new document.
Frequently Asked Questions
- Is this the same as GitHub's renderer?
- It supports the same core syntax and GitHub extensions, so most documents look the same. GitHub-only features such as @mentions, emoji shortcodes, Mermaid diagrams and syntax-highlighted code are not rendered.
- Why is my HTML tag shown as text?
- For safety, HTML in the Markdown source is escaped rather than rendered. Use Markdown syntax for formatting instead.
- How do I make a table?
- Write a header row, a delimiter row and data rows separated by pipes: | Name | Age |, | --- | ---: |, | Ada | 36 |. Or build one with the Markdown Table Generator.
- How do I add a line break without a new paragraph?
- End the line with two spaces or a backslash. A single newline alone is treated as a space.
- Is my document saved or uploaded?
- No. Rendering happens in your browser and nothing is sent to a server. Download the file if you want to keep it.