Markdown Editor
Write Markdown and see the page as you type, with math, diagrams and a check for broken links. Save it as HTML or PDF. Nothing leaves your browser.
- 0
- Words
- 0
- Min read
- 0
- Issues
On this page
About the Markdown Editor
Updated
Write in the editor. The preview next to it (under it on a phone) draws the page the way GitHub shows a README, and it changes as you type. When you scroll the editor, the preview scrolls with it. Click a line, and the preview marks the part of the page that line made.
How to use it
- Type or paste Markdown, drop a .md file on the page, or pick an example.
- Read the page in Preview. Press Ctrl B for bold and Ctrl I for italic.
- Open Notes to see what will not work as you meant: a link to a heading that does not exist, a code block with no end, a table that does not line up.
- Click Print or PDF under the preview, or open HTML and click Download for a page you can open anywhere.
Format (Alt F) puts the whole text in one style: the same heading marks, bullets and emphasis everywhere. Set the style in Options. To format Markdown without the preview, use the Markdown Formatter. To only read a file, the Markdown Viewer gives the page more room.
What the preview draws
- GitHub Flavored Markdown: tables, task lists, strikethrough, autolinks and footnotes, as in the GFM spec.
- Math in LaTeX, between
$or$$, drawn with KaTeX. - Diagrams in
```mermaidcode blocks, drawn with Mermaid. Mermaid loads only when the text has a diagram. - Alerts such as
> [!NOTE]and> [!WARNING], and emoji codes such as:rocket:. - Front matter: the YAML block at the top of a docs or blog file shows as a small table. Many online editors show it as a big heading by mistake.
- HTML such as
<details>and<kbd>. Scripts and event attributes are taken out, and the preview runs in a locked frame.
Common Markdown mistakes
Markdown never shows an error. A slip only gives a page that is not what you meant. These are the ones the editor finds.
A link to a heading that does not exist
A link such as #installation goes to the heading whose words make that id: lower case, spaces as dashes, punctuation out. A typo, or a heading you renamed, gives a link that goes nowhere. The editor names the closest id.
See [the setup](#instalation).
## InstallationTool:No heading makes #instalation. Did you mean #installation?
See [the setup](#installation).
## InstallationA reference link with no definition
[text][label] needs a line [label]: address somewhere in the file. Without it, the page shows the brackets as text.
Read the [style guide][style].Tool:The link [style] has no definition, so it shows as text with brackets.
Read the [style guide][style].
[style]: https://example.com/styleA code block with no end
A code block starts and ends with a line of three backticks. When the last one is missing, all text after the start shows as code, to the end of the file.
```sh
npm install
## UsageTool:This code block has no closing fence, so all text after it shows as code.
```sh
npm install
```
## UsageNo space after the # signs
##Usage is plain text. A heading needs a space after the # signs: ## Usage. The editor also finds a heading used twice, a table whose separator row has more columns than its header, mixed bullets, an empty link and an image with no alt text.
Markdown
Markdown is a plain text format for writing pages. John Gruber made it in 2004, so that a file reads well as text and turns into clean HTML. Files end in .md or .markdown, and the media type is text/markdown (RFC 7763). Today most tools follow CommonMark, and GitHub, GitLab and most docs sites add the GFM extras.
Markdown resources
- CommonMark SpecificationThe exact rules for Markdown syntax that most tools follow today.
- GitHub Flavored Markdown SpecCommonMark plus tables, task lists, strikethrough and autolinks, as GitHub draws them.
- GitHub Docs: Basic writing and formatting syntaxAlerts, footnotes, task lists and the other GitHub extras, with examples.
- Markdown Guide: Cheat SheetEvery common Markdown mark on one page.
- Mermaid: Diagram syntaxFlowcharts, sequence, state and Gantt diagrams written as text.
- KaTeX: Supported functionsThe LaTeX math commands that the preview draws.
Markdown Editor FAQ
What is a Markdown editor?
A Markdown editor is a text editor for Markdown files that shows what the text will look like. You write plain text with a few marks, such as # for a heading and ** for bold, and the preview draws the page. This editor shows the source and the page side by side (on a phone, the page is under the source), and the page changes as you type.
What is the best Markdown file editor?
It depends on the job. For a quick edit or a preview in the browser, an online editor such as this one needs no install. For many files in a project, a code editor such as VS Code has a built-in preview. For notes, apps such as Obsidian keep a whole folder of Markdown files. This editor adds what the others leave out: it tells you which links and headings will not work.
Is my text sent to a server?
No. The editor, the preview, the checks and the export all run in your browser. Your text never leaves your computer. The preview loads images from other sites by default, so for those only the image address goes out. Switch off Load outside images in the Result header to stop that too.
Does Markdown do images?
Yes. Write ![alt text](https:. The text in the brackets is the alt text, which screen readers read aloud. The editor marks an image with no alt text in Notes. Markdown cannot set the size of an image; use an HTML tag such as <img src="logo. for that.
How do I write math and diagrams?
How do I save my Markdown as PDF?
Click Print or PDF under the preview, then choose Save as PDF in the print window. The page prints without the editor, with code blocks and tables kept on one page where they fit. To keep the page as a file you can open in any browser, open the HTML view and click Download.
What are the disadvantages of using Markdown?
Markdown has no single standard for the extras: tables, footnotes, math and alerts work differently from one site to the next. A small slip, such as a missing space after # or a link to a heading that was renamed, shows no error, only a wrong page. This editor checks for those slips and lists them in Notes, each with its line.