📃 Markdown Previewer

Write Markdown on the left and see it rendered live on the right. Supports headers, bold, italic, links, images, inline code, code blocks, blockquotes, and ordered/unordered lists.

How the preview is produced

The parser walks your text one line at a time, deciding what each line is before formatting the words inside it. HTML special characters are escaped first, so any raw <script> or <div> you paste appears as literal text rather than running - the preview cannot execute what you type.

block level : # heading   ``` fence   > quote   - bullet   1. number
inline      : **bold**   *italic*   `code`   [text](url)

Consecutive > lines are merged into one blockquote. A run of bullets becomes a single list, and switching from - to 1. closes the <ul> and opens an <ol>. Everything else becomes a paragraph.

What this renderer does and does not handle

This is a preview, not an exporter - there is no HTML output box. Links open in a new tab and carry rel="noopener".

Frequently asked questions

Does my Markdown get uploaded anywhere?

No. The parser runs in your browser and the text never leaves the page, so drafts of private documents are safe to paste.

Why is my nested list flat in the preview?

The parser matches a bullet regardless of its indentation and puts every item in one list. Nested lists render correctly on GitHub and in most editors; only this preview flattens them.

How do I write a code block in Markdown?

Put three backticks on their own line before and after the code. Everything between them is shown verbatim in a monospace box, with Markdown characters left untouched.