Markdown Syntax Checker

Paste Markdown and get broken links, header issues and malformed lists flagged by exact line number, with a safe live preview. Your text never leaves your browser.

Updated:

100% client-side

Markdown source

0 characters · 0 lines

Live preview

Issues found

What is Markdown?

Markdown is a lightweight plain-text syntax for formatting documents — used in README files, GitHub/GitLab comments, static site generators and note-taking apps — where **bold**, [links](url) and # headers get converted into styled HTML. It's easy to write but also easy to get subtly wrong: a missing closing parenthesis or a skipped header level won't show an error, it'll just render incorrectly. This tool checks your Markdown for exactly those mistakes before you publish it.

How to use Markdown Syntax Checker

  1. Paste your Markdown into the Markdown source panel, or click Paste / Example.
  2. Watch the Live preview render as you type.
  3. Check Issues found for anything flagged as an error or warning, with the exact line number.
  4. Fix the source and confirm the issue disappears from the list.

How the Markdown checker works

This tool reads your Markdown line by line and runs a set of checks modeled on how real Markdown renderers (and the CommonMark spec) actually behave, not just "does this look weird":

[docs](https://example.com   ← missing closing ")"
### Getting started           ← jumped from H1, skipped H2
- item
* item                        ← marker changed mid-list, no blank line

An unclosed code fence or a truly broken link (a missing closing parenthesis, an empty URL, or a reference link with no matching definition) is flagged as an error — these genuinely break rendering or leave a dead link. A header level jump, an empty header, or an inconsistent list marker is flagged as a warning — the document still renders, but the structure is confusing for readers and screen readers alike. The live preview next to it is built by constructing real DOM elements directly from your Markdown — it never converts your text into an HTML string and injects it, so pasting a raw <script> tag or an <img onerror=...> attribute just shows up as plain text, never as something that runs.

Examples

1. A README with three common slips. A heading that skips from H1 to H3, a link missing its closing parenthesis, and a list that switches from - to *. The checker reports 3 issues found, each with its line number. Once the link syntax is fixed, you can check the URL itself with the URL Validator:

# My Project

### Install

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

- npm install
* npm start

L3  Header level jumps from H1 to H3, skipping a level. …
L5  Link “[docs](” is missing its closing “)” before the end of the line.
L8  List marker changed from “-” to “*” with no blank line in between — …

2. A reference link with no definition and an unclosed fence. Both are errors: the link renders as plain text, and everything after the open ```bash becomes one code block. The checker reports 2 issues found. If you are also choosing the file name or URL path for this page, the Slug Generator turns its title into one:

## Usage

Read the [changelog][changes] first.

```bash
npm run build

L3  Reference-style link uses “[changes]”, but no matching “[changes]: url” definition exists anywhere in the document.
L5  Code fence opened here is never closed. …

Frequently asked questions

Is it safe to paste sensitive Markdown here?

Yes. All parsing, checking and rendering happens in your browser using native JavaScript; no data is ever sent to a server.

Does the live preview execute raw HTML I paste, like a <script> or <img onerror>?

No. The preview never converts your Markdown into an HTML string and injects it — it builds real DOM elements directly (createElement, textContent). Any raw HTML you paste shows up as plain, inert visible text, never as parsed or executed markup.

What exactly does the checker look for?

Unclosed code fences, header levels that skip a step (like H1 straight to H3), empty headers, links with a missing closing parenthesis or an empty URL, reference-style links with no matching definition, and bullet lists that switch marker character mid-list without a blank line.

Does this support the full CommonMark or GitHub Flavored Markdown spec?

The preview covers the common subset: headers, paragraphs, bold/italic, inline code, fenced code blocks, links, bullet/numbered lists and blockquotes. It doesn't render tables, images or raw HTML passthrough — this tool is focused on catching syntax mistakes, not full spec-compliant rendering.