Markdown is plain text with a small set of punctuation conventions. A hash makes a heading, a hyphen makes a list item, square brackets make a link. The source stays readable before rendering, and the conventions work in documentation, notes, issue trackers and most publishing tools.

The fastest way to learn the syntax is to watch it render while you type. The Markdown Editor with Preview on Ovatly puts your Markdown on the left and a live, sanitized preview on the right, so every rule here can be tested the moment you read it. This guide covers the four elements that carry most everyday writing: headings, lists, links and code.

Contents

  • Quick answer
  • Headings: hashes and a space
  • Lists: bullets and numbers
  • Links: text in brackets, address in brackets
  • Code: inline ticks and fenced blocks
  • How to practise in the editor, step by step
  • Worked example: from Markdown to HTML
  • Limitations
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Write Markdown in the left pane of the Markdown Editor with Preview and watch the right pane render it as you type. A heading is one to six # characters followed by a space. A bullet list item starts with - and a numbered item with 1. (any starting number works, the renderer counts). A link is [text](address). Inline code sits in single backticks; code blocks are fenced by lines of three backticks. When the preview looks right, copy the sanitized HTML export from the box below. Nothing is saved, so keep your source text in your own files.

Headings: hashes and a space

A heading line starts with hash characters, one for each level, followed by a space:

# Page title
## Section heading
### Subsection heading

One hash is the top level, six is the deepest. Two details trip up beginners. The space after the hashes is required: #Title is a paragraph, not a heading. And heading levels should nest in order, so a section under a level-two heading is level three, not level five. Readers and search tools rely on that structure, and skipping levels makes a document hard to scan.

In the editor, headings are the easiest element to verify: the preview shows the size difference immediately, and a heading at paragraph size is almost certainly missing its space.

Lists: bullets and numbers

A bullet list item is a line starting with a hyphen and a space:

- First point
- Second point
  - Nested point, indented by two spaces

A numbered list uses a number, a full stop and a space:

1. First step
2. Second step

The numbers do not have to be in sequence; renderers renumber in order, so many writers use 1. for every item. Consistency matters more: mixing hyphen, asterisk and plus markers in one list is confusing even where legal, so pick the hyphen. Nested items are indented, as above. Leave a blank line between a paragraph and its list; a list starting directly under a paragraph line is the most common reason a list renders as one long paragraph.

A link has two parts: the visible text in square brackets, then the address in round brackets, with no space between them:

[Ovatly](https://ovatly.com)

Forget the round brackets and you get literal bracketed text. Put a space between the two halves and most renderers still show literal text. Images use the same shape with an exclamation mark in front, ![alt text](image-address), where the alt text describes the image for readers who cannot see it.

Links are where a live preview earns its keep: a link that renders as a link is syntactically right, a link showing its brackets is not, and you can fix the punctuation on the left and watch the right side change.

Code: inline ticks and fenced blocks

Code comes in two sizes. Inline code, for a command or a file name inside a sentence, sits in single backticks: typing npm run build with backticks around it renders it in a monospace style. Anything longer belongs in a fenced block: a line of three backticks, the code, then a closing line of three backticks:

```
function add(a, b) {
  return a + b;
}
```

Inside a fence, Markdown does nothing: hashes are not headings, brackets are not links, and indentation is preserved exactly. That is why code samples and terminal output belong in fences, not pasted as ordinary text. The editor renders fenced blocks in the preview, so you can confirm the fence closed correctly; an unclosed fence swallows the rest of the document into the code block, which the preview makes obvious at a glance. Pipe tables render in the preview too: rows of cells separated by pipe characters, with a separator row of hyphens under the header row.

How to practise in the editor, step by step

  1. Open the Markdown Editor with Preview. The writing pane is on the left, the preview on the right.
  2. Write or paste Markdown in the left pane, starting with one heading, one paragraph, one list and one link.
  3. Watch the preview update as you type. Check that headings, lists, links and code render as expected; an element showing as plain text has wrong punctuation.
  4. Fix the punctuation on the left and confirm the change in the preview. This loop, type and check, is the learning mechanism.
  5. Copy the sanitized HTML export from the box below when you need markup, and save your source Markdown in your own file: the editor keeps nothing.

Worked example: from Markdown to HTML

The editor's own example is the smallest useful demonstration:

# Title

Hello **world**

produces this HTML in the export box:

<h1>Title</h1>
<p>Hello <strong>world</strong></p>

You can see that rendering in the preview and copy the same markup from the export box. Three rules from this guide are visible in two lines: the hash plus space became the top-level heading element, the blank line separated heading from paragraph, and the double asterisks became strong emphasis. Every other element works the same way: a small punctuation rule on the left, a predictable element on the right, the preview to confirm the two match.

Limitations

Nothing is saved. Refresh the page and the text is gone, so the editor is a writing and checking surface, not storage; keep your source Markdown in your own files and copy the export before closing the tab. The preview is sanitized with DOMPurify, so raw HTML you paste is filtered: harmless formatting tags pass through, but script elements, iframes and inline event handlers are stripped, and the export is that same safe subset. It renders standard Markdown, CommonMark-style, via marked. Editor-specific extensions such as task lists may render differently elsewhere, so a document depending on a platform's extensions needs a final check on that platform. The sanitized export also makes this the wrong tool when you need unsanitized markup exactly as written.

Common mistakes

  • Missing the space after the hashes. #Title is a paragraph. Headings need # Title, with the space, at every level.
  • No blank line before a list. A list starting directly under a paragraph line often renders as part of that paragraph. Separate them with an empty line.
  • A space inside a link. [text] (address) shows as literal text. The two bracket pairs must touch.
  • An unclosed code fence. Everything after the opening fence becomes code until the closing fence appears. If half your document turns monospace in the preview, count your fences.
  • Expecting the page to remember your text. It does not. Closing or refreshing the tab discards the work. Save the source in your own file first.

FAQs

Why does some of my raw HTML disappear in the preview? Because the preview is sanitized with DOMPurify. Harmless formatting tags pass through, but scripts, iframes and inline event handlers are removed by design, and the HTML export matches the preview.

Does the editor support tables and code blocks? Yes, fenced code blocks and pipe tables render in the preview, as they do in standard Markdown renderers.

Is my writing saved in the editor? No. Nothing is saved: refresh the page and the text is gone. Keep your source Markdown in your own files.

Why did my heading show as plain text? A heading needs a space after the hash characters. Without the space, the line is ordinary paragraph text. Add the space and the preview updates as you type.

Is this the same as the Markdown to HTML Converter? They share an engine room but not a job: this is a writing surface with a live preview and a safe export; the converter in Website Tools is a straight code-in, code-out conversion.

Conclusion

Headings, lists, links and code are a small syntax with a short feedback loop: a hash and a space, a hyphen, two pairs of brackets, a pair of backticks. Learn them inside the Markdown Editor with Preview, where every mistake shows in the preview the moment you make it, and the four elements will carry most of what you write in Markdown. When a Markdown draft comes back from an editor and you need to confirm the words, not the formatting, the sibling guide on How to Verify an Edited Article Against the Original Draft covers that check, and the Developer Tools guides collect the rest of the series.