Markdown Previewer

Loading preview...

How to use the Markdown Previewer

Write Markdown on one side and see the formatted result update on the other. It supports GitHub-style Markdown, syntax-highlighted code blocks and Mermaid diagrams. Everything runs in your browser, so your text is never uploaded to a server.

Step by step

  1. Type or paste your Markdown into the Markdown box. A short example is already there, so you can see how it works.
  2. Stop typing for a moment and the Preview updates automatically. There is no button to press.
  3. Use the usual Markdown syntax: # for headings, ** for bold, * for italics, - for lists, [text](url) for links, and three backticks to start and end a code block.
  4. To draw a diagram, start a code block with three backticks followed by the word mermaid, and write your Mermaid diagram inside it.
  5. Click Copy Markdown to copy what you wrote, Copy HTML to copy the generated HTML, or Clear to empty the Markdown box.

Tips

  • Tables, task lists (- [ ] and - [x]) and strikethrough work, as they do on GitHub.
  • Add the language after the opening backticks, for example js or python, to get colored code.
  • Content is limited to 100,000 characters, and lines with extremely deep nesting are rejected to keep your browser from freezing. A message appears in both cases.
  • If a Mermaid diagram has a syntax error, a yellow message shows the problem so you can fix it.

Good to know

Markdown is plain text with light formatting symbols. A renderer converts it to HTML: headings, emphasis, lists, links, code blocks and tables. The previewer shows the rendered result as you type so you can see how it will look before you publish.

This previewer supports GitHub-style extensions: tables, task lists, strikethrough, syntax-highlighted code blocks and Mermaid diagrams.

When to use it

  • Drafting a README, documentation page or blog post.
  • Checking a table or a task list before pasting it into an issue or a pull request.
  • Sketching a flowchart or sequence diagram with Mermaid.

Example: Markdown and what it shows

Input

## Shopping list
- [x] Milk
- [ ] Bread
**Total:** 2 items

Result

A level-two heading, a checked and an unchecked box, and a bold "Total".

Common mistakes

  • Missing a blank line before a list, table or code block, so it does not render.
  • Forgetting the header separator row (|---|---|) in a table.
  • Assuming every platform renders Markdown the same way. Preview in the tool where you will publish.

Frequently asked questions

Is my text uploaded?
No. The Markdown is rendered in your browser and never sent to a server.
Which Markdown features are supported?
GitHub-style Markdown: headings, lists, links, tables, task lists, strikethrough and fenced code blocks with syntax highlighting. A code block marked as mermaid is drawn as a diagram.
Why does the preview wait a moment?
The preview refreshes after you pause typing, so it does not flicker on every keystroke.
Does it run HTML written inside Markdown?
No. HTML tags and scripts that you type are shown as plain text and are not executed, which keeps the preview safe.
What does Copy HTML copy?
The HTML that makes up the rendered preview, so you can paste it into another page.
Are there limits?
The text can be up to 100,000 characters, and lines with extremely deep nesting are rejected so that your browser does not freeze. A message appears in both cases.

Related searches: markdown editor with live preview · github markdown preview online · markdown to html online · mermaid diagram in markdown preview

Tìm kiếm liên quan: trình soạn thảo markdown online xem trước trực tiếp · chuyển markdown sang html · vẽ sơ đồ mermaid trong markdown · xem trước markdown kiểu github