Markdown Viewer & Editor
Live preview, CodeMirror editor, GitHub Flavored Markdown, syntax-highlighted code blocks, HTML export
Write GitHub Flavored Markdown on the left, see it rendered on the right in real time. The editor is powered by CodeMirror with markdown syntax highlighting; code blocks in the preview use CodeMirror too, so you get accurate highlighting for JavaScript, TypeScript, HTML, CSS, JSON, YAML, XML, and Markdown. Tables, task lists, strikethrough, and blockquotes are all supported. Copy or download the result as Markdown or self-contained HTML.
Quick Templates
Markdown Input
Live Preview
Welcome to Markdown Viewer
Features
- Live Preview: See your markdown rendered in real-time
- Export Options: Download as HTML or copy to clipboard
- GitHub Flavored Markdown: Tables, task lists, strikethrough
- Syntax Highlighted Code Blocks: Powered by CodeMirror
Sample Table
| Feature | Status | Priority |
|---|---|---|
| Live Preview | ✅ Complete | High |
| Export HTML | ✅ Complete | Medium |
| Syntax Highlighting | ✅ Complete | High |
Code Block Example
Loading…
Try writing inline code here — it should render as plain monospaced text, not inside a code block.
Task List
- Create markdown parser
- Add live preview
- Replace rehype-highlight with CodeMirror
- Try editing this list
Strikethrough and Links
This text is crossed out
Check out iToolVerse for more tools.
Blockquote
Tip: Edit the left pane to see live preview in real time.
Markdown Input
Worked examples
Six common markdown patterns. Click Copy on any card to put its source into your clipboard, then paste it into the editor above to see it rendered live.
GitHub README
Standard layout for an open-source project README — title, description, install, usage, license.
API endpoint documentation
A single API endpoint with parameters table, JSON request/response examples, and error codes.
Meeting notes with task list
Day-of meeting capture with attendees, decisions, and follow-up checkboxes.
Tutorial with multiple code blocks
Step-by-step writeup mixing prose, terminal commands, and TypeScript examples.
Changelog entry
A single release entry following the Keep a Changelog format.
GFM extras showcase
Strikethrough, autolinks, footnotes, task lists — every GFM extra on a single page.
Related tools
Markdown reference
Quick syntax reference for everything this viewer renders, plus the differences between CommonMark and GitHub Flavored Markdown that catch most people the first time.
Syntax cheat sheet
# Heading 1## Heading 2**bold**·*italic*~~strikethrough~~`inline code`[link text](https://url)
- bullet item1. ordered item- [x] completed task> blockquote| col 1 | col 2 |(table)```javascript(fenced code)---(horizontal rule)
CommonMark vs GitHub Flavored Markdown
CommonMark is the official Markdown spec. GitHub Flavored Markdown (GFM) extends it with a few extra features used everywhere on GitHub, GitLab, and most modern Markdown processors. This viewer renders GFM.
| Feature | CommonMark | GFM |
|---|---|---|
| Headings, bold, italic, links, lists | ✓ | ✓ |
| Fenced code blocks | ✓ | ✓ |
Tables (| col |) | — | ✓ |
Task lists (- [x]) | — | ✓ |
Strikethrough (~~text~~) | — | ✓ |
| Autolinks (bare URLs) | — | ✓ |
Footnotes [^1] | — | ✓ |
Code block syntax highlighting
Fenced code blocks accept a language hint after the opening triple-backticks. This viewer uses CodeMirror to highlight the following languages natively:
- JavaScript / TypeScript / JSX / TSX —
js,ts,jsx,tsx - HTML —
html - CSS / SCSS / SASS / LESS —
css,scss,sass,less - JSON / JSONC —
json,jsonc - YAML —
yaml,yml - XML / SVG —
xml,svg - Markdown —
md,markdown,mdx
Any other language hint (e.g. python, go, bash) renders as a clean monospaced block without syntax colouring — readable, just not coloured. Adding more languages is a one-line change in the code block component.
Common uses
- READMEs for GitHub / GitLab / Bitbucket repositories — the rendered output matches platform behaviour because both use GFM.
- Technical documentation — API reference, runbooks, internal guides.
- Blog drafts — write in Markdown, export the HTML, paste into your CMS.
- Meeting notes & reports — task lists make follow-ups easy to track.
- Static-site content — Hugo, Jekyll, Astro, Next.js all consume Markdown directly.
- Quick HTML conversion — sometimes you just need styled HTML to email or paste into a doc.
Exporting
- Copy Markdown — raw source, useful for moving content between editors.
- Copy HTML — self-contained HTML with inline styles. Paste into an email or doc.
- Download HTML — same self-contained HTML saved as a
.htmlfile. - Download MD — the original Markdown source saved as
document.md.
Everything runs in your browser — nothing is uploaded.
Frequently Asked Questions
GitHub Flavored Markdown, CodeMirror syntax highlighting, exports, and the React-Markdown rendering pipeline.