You pasted your notes into a page, hit publish, and the result looks wrong. The heading sits there with its hash marks still visible. The list you wrote is one solid paragraph. Half the document has turned into a grey code block. Markdown is forgiving about many things, but it is strict about a handful of small rules, and breaking one produces output broken in a very specific way.

This guide covers the five mistakes that cause most of that damage: missing space after heading marks, a list stuck in its paragraph, an unclosed code fence, link syntax written backwards, and table rows with mismatched pipe counts. For each one: what the broken version looks like, why the renderer gives up on it, and the fix. One principle runs through all of them: Markdown gives no error messages, so a line the renderer cannot parse shows as plain text, which makes the preview a diagnostic tool. The working method is the Markdown Editor with Preview on Ovatly: write in the left pane, watch the rendered result update on the right, and fix the syntax wherever the preview goes plain.

Contents

  • Quick answer
  • Mistake 1: no space after the heading marks
  • Mistake 2: a list stuck inside a paragraph
  • Mistake 3: an unclosed code fence
  • Mistake 4: link syntax reversed
  • Mistake 5: table rows with the wrong pipe count
  • How to fix them, step by step
  • Worked example: one broken page, five repairs
  • Limitations
  • Common mistakes beyond the big five
  • FAQs
  • Conclusion

Quick answer

Most Markdown that renders badly breaks one of five rules. Headings need a space after the # marks. A list needs a blank line before it after a paragraph. A fenced code block needs its closing fence of three backticks, or it swallows everything below it. A link is written as [text](address), brackets first, parentheses second. A table needs the same number of pipes in every row, plus the separator row of dashes under the header. Paste your text into the Markdown Editor with Preview, scan for anything showing as plain text, and fix the syntax at that spot.

Mistake 1: no space after the heading marks

A heading is one to six # characters, a space, then the text. Leave out the space and the line is just a paragraph starting with hashes.

#Weekly notes
## Agenda

The first line renders as plain text; the second renders as a real heading, because it has the space. In the preview the difference is obvious at a glance. The fix is a single space after the last hash mark, on every heading level.

Mistake 2: a list stuck inside a paragraph

Markdown builds paragraphs from consecutive lines. Start typing list items directly under a paragraph, with no blank line between, and many renderers fold the items into the paragraph.

Things to pack:
- Passport
- Charger

Depending on the renderer, that can come out as one paragraph with the dashes visible mid-sentence. Put a blank line between the intro line and the first item, and the preview shows a real bulleted list. The same blank-line rule applies before headings and code blocks.

Mistake 3: an unclosed code fence

A fenced code block opens with a line of three backticks and closes with another. Forget the closing fence and everything after it is treated as code until the document ends or another fence appears.

Here is the command:

```
npm run build

## Results

The build passed and the page went live on Tuesday.

In the preview, the heading and the closing sentence show up inside the grey code box, in monospace, with the ## visible: the signature of a missing fence. Add the closing fence on its own line right after the code. With several code blocks, count the fences: they must come in pairs.

A Markdown link has two halves in a fixed order: the visible text in square brackets, then the address in round parentheses, no space between them.

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

Swap the halves, writing (Ovatly)[https://ovatly.com], and the renderer sees plain text, so your reader sees raw punctuation instead of a link. The same symptom appears if you leave a space between the closing bracket and the opening parenthesis. In the preview, a working link is styled and clickable; a broken one shows its brackets. Check the order first, then look for a stray space.

Mistake 5: table rows with the wrong pipe count

A pipe table is a header row, a separator row of dashes, then one row per record. Every row must have the same number of cells, which in source means the same number of pipes.

| Name | Role |
| --- | --- |
| Ada | Admin |
| Grace | Editor | Extra |

The last row has three cells in a two-column table, so renderers drop the table into a paragraph of pipes or mangle the columns. The other classic failure is deleting the separator row: without the dashes line, the renderer never recognizes a table at all. A failed table shows up as plain lines with visible pipes: count pipes row by row against the header.

How to fix them, step by step

  1. Open the Markdown Editor with Preview and paste your document into the left pane.
  2. Read the preview from the top, looking for source characters on display that should be invisible.
  3. Match each symptom to its rule: hash visible, missing space; list inside a paragraph, missing blank line; giant code box, missing closing fence; brackets on show, reversed link syntax; pipes on show, wrong pipe count.
  4. Fix one item at a time and watch the preview change, so you know it landed.
  5. When the preview is clean, copy the source Markdown into your own file, or the sanitized HTML export from the box below the editor if you need markup.

Worked example: one broken page, five repairs

A project update with all five faults packed in:

#Project update
This week we shipped the new export:
- Faster downloads

Run it with:

export-report --format csv

Next steps

See the (guide)[https://example.com/guide] for details.

TaskOwner
TestingAda
ReleaseGrace

In the preview, the title is plain text, the list item sits inside the paragraph, everything from the command line on is one code block, and the link and table never render. Repair in order: add the space to make `# Project update`, add a blank line before the list, close the code fence after the command, rewrite the link as `[guide](https://example.com/guide)`, and delete the extra cell in the last table row. Five small edits, none longer than a few characters, and the preview shows the page as intended.

## Limitations

The editor renders standard Markdown, CommonMark-style, via the marked library. Editor-specific extensions, such as task lists in some apps, may render differently here than where you publish, so treat a clean preview as a strong signal, not a guarantee. The preview and export are sanitized with DOMPurify: scripts, event handlers and other active content are stripped, so pasted raw HTML may lose pieces by design. And nothing is saved: refresh the page and the text is gone.

## Common mistakes beyond the big five

Three more habits cause quiet damage. Mixing list markers in one list, `-` then `*`, which some renderers split into two lists: pick one marker per list. Indenting a paragraph by four spaces, which starts an indented code block and turns a sentence into monospace. And pasting from a word processor, which can smuggle curly quotes into link addresses: retype them straight.

## FAQs

**Why does my heading show as plain text with hash marks?**
Because there is no space after the hash marks. Markdown needs '# Heading' with a space before the text; '#Heading' renders as an ordinary paragraph line that starts with a hash character.

**Why did half my page turn into one big code block?**
A fenced code block was opened with three backticks and never closed. Everything after the opening fence is treated as code until a matching closing fence appears, so add the missing fence on its own line.

**Why does my link show the raw brackets and parentheses?**
The two halves are probably swapped. Link text goes in square brackets and the address goes in parentheses, like `[text](address)`. Written the other way round, the renderer shows your source as plain text.

**Why does my table render as one paragraph of pipes?**
Usually a row has a different number of pipes from the header, or the separator row under the header is missing. Every row needs the same pipe count, and the dashes row is what tells the renderer it is a table.

**Does the editor save my Markdown?**
No. Nothing is saved: refresh the page and the text is gone. Once your document renders the way you want, copy the source Markdown into your own file.

## Conclusion

Broken Markdown is rarely broken writing. It is one missing space, one missing fence, one swapped pair of brackets. Work through the preview, fix the syntax where the rendering goes plain, and the document repairs itself line by line. For a document that has to be right first time, such as your project's README, the same habit applies: [How to Write a README File in Markdown](/blog/how-to-write-a-readme-file-in-markdown) builds one section by section. More guides: [Developer Tools guides](/blog/category/developer-tools).