# Markdown Lint and Style Checker

Lint Markdown against ~15 markdownlint rules plus 2 Chinese-typography rules, with line-located reports and one-click auto-fix of safe issues

> Canonical page: https://elysiatools.com/en/tools/markdown-lint-style-checker

- **Category:** Text Processing

- **Keywords:** markdown, lint, markdownlint, style, checker, readme, documentation, prose, chinese typography, cn001, auto fix

## Overview

Tokenizes Markdown into blocks and runs a markdownlint-inspired rule engine (MD001/004/009/012/013/022/024/025/029/031/032/040/041/042/045/047) plus Chinese-typography rules (CN001 space between Chinese and Latin/digits). Reports each issue with its line, rule ID, severity, and a fix hint. Auto-fix applies only safe deterministic fixes (trailing whitespace, blank lines, list markers, trailing newline). Three rule sets: Default, Strict, Lenient.

## Inputs

- **Markdown Content** (textarea): # Title Some Markdown with issues... - item one * item two (mixed markers) ``` code without language ``` ##使用Python3 (missing space)
- **Rule Set** (select)
- **Auto-fix safe issues** (checkbox)

## When to use

- Before publishing documentation, README files, or blog posts to ensure consistent formatting and style.
- When editing mixed-language documents containing both Chinese and English/digits to automatically fix spacing issues.
- To quickly clean up messy Markdown files by automatically fixing trailing whitespaces, consecutive blank lines, and missing list markers.

## How it works

- Paste your Markdown content into the text area and select your preferred rule set (Default, Strict, or Lenient).
- Enable the auto-fix option if you want the tool to automatically resolve safe, deterministic formatting issues.
- Review the generated report highlighting specific rule violations, line numbers, severity levels, and suggested fixes.

## Use cases

- Standardizing project README files before committing them to version control repositories.
- Polishing technical documentation to ensure correct heading hierarchies and code block formatting.
- Formatting bilingual Chinese-English articles to automatically insert proper spacing between different character sets.

## Frequently asked questions

### What rules does the Markdown Lint and Style Checker validate?

It checks ~15 standard markdownlint rules (like heading levels, list markers, and code fences) and Chinese-typography rules (like spacing between Chinese and Latin characters).

### What issues can the auto-fix feature safely resolve?

It automatically fixes trailing whitespaces, consecutive blank lines, inconsistent list markers, missing blank lines around headers/lists, and missing trailing newlines.

### What is the difference between the Default, Strict, and Lenient rule sets?

Default checks standard rules; Strict adds strict line length (MD013) and ordered list prefix checks; Lenient suppresses style warnings to focus only on errors.

### Does the tool modify my original Markdown structure or content?

No, it only fixes safe formatting issues. Structural issues like skipped heading levels or missing code block languages are reported for manual correction.

### How does the Chinese-typography rule (CN001) work?

It detects and flags missing spaces between Chinese characters and Latin characters or digits, helping you maintain clean, readable bilingual text.

## Related tools

- [Markdown Link Extractor](https://elysiatools.com/en/tools/markdown-link-extractor): Extract inline links, reference links, and bare URLs from Markdown documents with basic syntax validation
- [Indented List to ASCII Tree](https://elysiatools.com/en/tools/ascii-tree-from-indented-list): Convert a 2-space / 4-space / Tab indented hierarchical list (Markdown bullets, -, *, 1. prefixes optional) into a copyable ASCII directory tree. Two styles: Unicode box-drawing (├──└──│) for GitHub/Discord and classic ASCII (|--\--|) for plain text. Toggles for full guide lines, trailing spaces, and bracketed leaf nodes like docs/\[api.md\].
- [Security Headers Checker](https://elysiatools.com/en/tools/security-headers-checker): Audit HTTP response headers for security compliance — parses the raw headers you paste (no network) and grades them against the OWASP secure-header set with value-level checks: HSTS max-age, CSP unsafe-inline/eval, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, COOP/COEP/CORP and more. Outputs a letter grade (A+ to F) plus per-header findings with copy-ready fix recommendations.
- [Blood Gas Acid-Base Interpretation (AG / ΔAG)](https://elysiatools.com/en/tools/blood-gas-anion-gap): Complete ABG analysis: pH, primary disorder, compensation (Winter's formula), anion gap ± albumin correction, delta ratio for mixed disorder detection. Derived from Emmett 2016, Kraut 2007, Rastegar 2007, LITFL, MDCalc, and Adrogué 1998. Not medical advice.
- [Thyroid Index (TSH/FT4/FT3 Interpretation)](https://elysiatools.com/en/tools/thyroid-index): Interpret the thyroid axis by pattern-reading TSH with FT4 and (optionally) FT3. Adult reference ranges: TSH 0.4–4.0 mIU/L, FT4 0.8–1.8 ng/dL (≈10–23 pmol/L), FT3 2.3–4.2 pg/mL (≈3.5–6.5 pmol/L). High TSH + low FT4 → overt primary hypothyroidism; high TSH + normal FT4 → subclinical hypothyroidism; low TSH + high FT4/FT3 → overt primary hyperthyroidism; low TSH + normal FT4 → subclinical hyperthyroidism, exogenous hormone, or resolving thyroiditis (check FT3 for T3 toxicosis); low/normal TSH + low FT4 → central hypothyroidism; high TSH + high FT4 → TSH-secreting adenoma or thyroid hormone resistance. Low FT3 with normal TSH/FT4 indicates low-T3 (non-thyroidal illness) syndrome. Units selectable for TSH, FT4, FT3. Derived from ATA 2014/2016, NACB 2002, Garber 2012, and MDCalc. Not medical advice.
- [Ping Shui Yun & Ci Lin Zheng Yun Classical Chinese Poetry Rhyme Index](https://elysiatools.com/en/tools/ping-shui-yun-ci-lin-zheng-yun-classical-chinese-poetry-rhyme-index): Look up any Chinese character or phrase in the Ping Shui Yun (平水韵, 106 rhyme groups, Song dynasty) and Ci Lin Zheng Yun (词林正韵, 19 parts, Qing dynasty) rhyme books: tone class (平/上/去/入), pingze (平/仄) pattern, and cross-system mapping. Reverse lookup lists every character of a rhyme group and checks whether a set of characters can rhyme together, with canonical poem rhyme-foot examples from Li Bai, Du Fu, Su Shi, Li Qingzhao and Yue Fei.
- [AI Domain Name Idea Generator](https://elysiatools.com/en/tools/ai-domain-name-idea-generator): Generate up to 10 creative domain names with AI and filter out already-registered ones via DNS + RDAP.
- [Color Space Converter](https://elysiatools.com/en/tools/color-space-converter): Convert a color between HEX, RGB, HSL, CIELAB, and Display-P3 with CSS-ready output and gamut checks.

## Samples

- [Markdown Viewer Samples](https://elysiatools.com/en/samples/markdown-viewer-samples): Sample Markdown files for README preview, documentation rendering, and rich-text markup tests
- [Markdown Samples](https://elysiatools.com/en/samples/markdown-samples): Markdown format examples from simple to complex document structures
- [Markdown Slide Deck Samples](https://elysiatools.com/en/samples/md-slide-deck-to-pdf): Remark/Marp style Markdown slide decks for testing PDF export layouts
- [Test Pyramid Examples - Testing Strategy Guide](https://elysiatools.com/en/samples/test-pyramid-examples): Comprehensive test pyramid implementation examples including unit tests, integration tests, E2E tests, test organization, and strategic testing patterns for balanced software quality assurance

## Related content

- [Editorial Copy Review and Brand Voice](https://elysiatools.com/en/hubs/editorial-copy-review-and-brand-voice): Review an existing draft for brand voice, titles, readability, typography, whitespace, and Markdown quality without flattening the author's intent.
