piapia123
en

Markdown Preview

Text

Everything runs locally in your browser — nothing is uploaded

MARKDOWN
PREVIEW

Rendering happens locally in your browser — nothing is uploaded. Image syntax shows only its alt text and never requests the address you pasted.

Type on the left, see the rendered result on the right. The renderer implements a deliberately safe subset: every piece of HTML is escaped before any Markdown syntax is applied, so a pasted script tag is displayed as text and never executes. Links using javascript: are blocked and shown in red rather than becoming clickable, and image syntax is never turned into an image element — doing so would make your browser request whatever address you pasted, telling that server you are reading the document. Headings get jumpable anchors, and a document with more than one heading also gets a table of contents at the top of the preview.

Features

  • Headings, paragraphs, bold, italic, strikethrough, inline code, syntax-highlighted fenced code blocks, links, ordered and unordered lists, task lists, GFM tables, quotes and horizontal rules
  • Headings get anchors automatically, and a document with two or more headings gets a clickable table of contents at the top
  • Headings in any script — Latin, Chinese, Japanese, Korean — get a readable anchor rather than a numbered stub or an empty id
  • Code blocks are highlighted per language (javascript, typescript, python, bash, sql, yaml, diff, dockerfile and twenty more), each with a language label and a one-click copy button
  • Tables support left, centre and right alignment, and scroll inside their own box on narrow screens instead of breaking the layout
  • Task lists written as - [x] / - [ ] render as checkboxes
  • HTML is escaped before parsing, so pasted tags stay visible as text
  • Link schemes are filtered: javascript:, data: and similar never become clickable anchors, and the raw address is shown in red instead
  • External links carry rel="noopener noreferrer" against reverse tabnabbing
  • Image syntax shows its alt text only and never requests a remote address
  • Two levels of list nesting, using two spaces of indentation
  • Underscore emphasis is deliberately not parsed, so foo_bar_baz and __init__ stay intact
  • Content past 200,000 characters is truncated with an explicit notice

How to use

  1. Paste or type Markdown in the left pane
  2. The rendered result appears in the right pane as you type
  3. In a long document, jump around with the table of contents at the top
  4. Click Load sample for a document that exercises every supported syntax
  5. To send or archive it, use Download .html — the anchors and contents still work in that file

FAQ

Are footnotes or inline HTML supported?
Tables, task lists and syntax highlighting are supported now. Footnotes and inline HTML are not, and inline HTML never will be: it conflicts directly with the rule that every piece of user input is escaped before it reaches the page — it would mean letting users inject tags. For full CommonMark, preview in a local editor.
Why is _italic_ not parsed?
Underscores appear constantly inside identifiers, so foo_bar_baz, __init__ and snake_case would all be mangled into italics. The asterisk form has no such problem, so use that.
Why are images not displayed?
Displaying an image makes your browser request the address you pasted. For a document that is not public yet, that tells a third-party server you are reading it, which contradicts the promise that nothing leaves your browser. Only the alt text is shown.
Are single line breaks merged?
No. A single newline inside a paragraph stays a line break, matching the behaviour of comment fields on code hosting sites, and only a blank line starts a new paragraph. Your pasted layout is not silently rewritten.
How is the table of contents built, and can I share a heading anchor?
Every heading gets an anchor, and a document with two or more headings gets a table of contents at the top of the preview; clicking an entry scrolls to that section. A heading in any script keeps a readable anchor rather than a numbered stub or an empty id, so a Chinese or Japanese heading stays legible in the URL. To reference a section elsewhere, use Download .html and share that file — the anchors and the contents work there. Clicking a contents entry does not change the address bar, because the document itself only exists on your machine: a link to this page would not reproduce it for whoever opens it.

Related tools