Skip to content
UniKit

Markdown editor and preview

Markdown editing and export: renders GFM (tables, task lists, fenced code) with marked, counts headings, code blocks, images and links, and exports a styled standalone HTML file. Toolbar actions such as bold, italic, link and list are pure transformations of the selection, and pasted images become data-URL image syntax.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Markdown source

With breaks on a single newline renders as <br>; turn it off for standard Markdown where paragraphs need a blank line.

Toolbar buttons act on the textarea selection: selected text is wrapped, and with nothing selected a placeholder is inserted (list actions only touch the line under the cursor).

You can paste an image straight from the clipboard: it is converted into data-URL image syntax at the cursor (it stays in the text, nothing is uploaded).

Rendered HTML source

Rendered with marked in GFM mode (tables, task lists, fenced code). The HTML source is shown here so you can copy it or export a standalone HTML file.

Write Markdown in the editor above and the rendered HTML appears here

Headings: 0 · Code blocks: 0 · Images: 0 · Links: 0 · Words: 0 · Characters: 0

What this tool does

  • Draft Markdown for a README, blog post or doc in the browser and watch the rendered HTML plus structure stats (headings, code blocks, images, links).
  • Wrap a selection with toolbar actions: bold, italic, inline code, code block, link, image, bullet or numbered list, quote, heading 2, horizontal rule and table.
  • Export the finished Markdown as a standalone styled HTML file (inline CSS, opens with a double click, ready to paste into email or a static site).

Example

Input

## Hello

**world**

Output

<h2>Hello</h2>
<p><strong>world</strong></p>

Rendering uses marked in GFM mode (tables, task lists and fenced code included) and keeps the trailing newline marked emits. Stats report 1 heading, 0 code blocks, 0 images and 0 links.

Frequently asked questions

Is the content uploaded?

No. Parsing and rendering happen in the browser through marked, and the exported HTML is built locally with a Blob. No network request is made.

Which Markdown features are supported?

marked in GFM mode: headings, bold / italic / strikethrough, inline and fenced code, bullet, numbered and task lists, tables, blockquotes, links and images. Raw HTML is kept (allowHtml defaults to on, matching marked). Table alignment, footnotes and LaTeX math are not supported.

How are newlines handled?

Breaks are on by default, so a single newline renders as <br>, which suits chat-style text; turn it off for standard Markdown where paragraphs need a blank line. Toolbar buttons only act on the current selection — they never reformat the whole document for you.

What does the exported HTML contain?

A complete <!DOCTYPE html> document with <meta charset="utf-8">, a viewport tag, a title (Markdown export by default) and a small inline stylesheet (measure, code background, table borders, blockquote rule, responsive images). Everything is inlined, no external assets.

How are the statistics counted?

Headings count lines starting with #; code blocks count paired ``` fences (indented code blocks are counted per line); images match ![alt](url); links match [text](url) and exclude images; words are runs of letters, digits, underscores or apostrophes, so each CJK character counts as one word.

Keywords:markdown editormarkdown to html

Related tools