Markdown preview
The preview appears here as you type.
Type or paste Markdown on one side and see the rendered result on the other, as you type. The output is sanitised with the same rules as the notepad’s Markdown editor: only text-structure tags, links restricted to http, https and mailto, and every block set to automatic direction so Persian and English paragraphs each read the right way. “Copy HTML” gives you the sanitised markup.
How to use
- Paste or type Markdown in the left box (GitHub-flavoured syntax: headings, lists, task lists, tables, code blocks).
- Watch the preview update on the right. The renderer loads on your first keystroke, so the page stays light until you use it.
- Press “Copy HTML” to copy the sanitised HTML, or “Copy Markdown” for the source.
- Choose “Open in notepad” to continue in a Markdown note with the same source.
What it does
- Renders GitHub-flavoured Markdown: headings, emphasis, lists, task lists, tables, blockquotes, inline code and fenced code blocks.
- Sanitises the output: no scripts, styles, iframes, images or forms; no inline event handlers.
- Allows links only with http:, https: or mailto: targets and adds rel="noopener noreferrer".
- Sets dir="auto" on every block so mixed Persian/English documents render each paragraph in its own direction.
- Runs in your browser; nothing is uploaded.
What it doesn’t
- It does not render images or embeds — by design, so a pasted document cannot load remote content.
- It does not support raw HTML passthrough beyond the allowed tags; unknown tags are removed.
- It does not export PDF; open the result in the notepad and use Print there.
Limits
- The renderer (marked + DOMPurify) is downloaded on first use, roughly 60 KB compressed.
- Extremely long documents re-render on every keystroke; the preview may lag above a few hundred kilobytes.
Questions
Why are my images not shown?
Images are stripped by the sanitiser so that previewing a document can never make a request to a third-party server. The notepad’s Markdown editor follows the same rule.
Which link types are allowed?
Only http://, https:// and mailto:. Anything else (javascript:, data:, relative paths) loses its href attribute.
Does the preview handle right-to-left text?
Yes. Each block element gets dir="auto", so a paragraph that starts with a Persian or Arabic letter is laid out right-to-left while a following English paragraph stays left-to-right.
Is the copied HTML safe to paste into my site?
It is sanitised with a strict allow-list, which makes it safe to render. Styling is up to you: the HTML contains no inline styles.
Which Markdown flavour is this?
GitHub-flavoured Markdown (tables, task lists, strikethrough, fenced code). Hard line breaks require two trailing spaces or a blank line, as in GFM.