About markdown ↔ html
Markdown is a light way to write formatted text. This tool turns it into HTML with a live preview, or converts HTML back to Markdown.
Basic syntax
- # for headings, ** ** for bold and * * for italics.
- - or 1. for lists, and [text](url) for links.
- Backticks for code and > for quotes.
Safety
If you insert converted HTML into a web page, sanitise it first when the Markdown comes from users, to prevent script injection.
A worked example
The Markdown '# Title' followed by '- one' and '- two' becomes <h1>Title</h1> and an unordered list with two <li> items. Links written as [text](https://example.com) become anchor tags, and **bold** becomes <strong>.
Going from HTML to Markdown
- Headings, lists, links and images convert cleanly.
- Complex layouts, forms and scripts have no Markdown form and may be dropped.
- Check tables, since Markdown tables cannot merge cells.
