Sample Markdown files for testing parsers — free, CC0

Markdown is plain text with lightweight formatting, and every renderer treats its corners a little differently. md/readme-style.md is a README-shaped Markdown document of exactly 4,096 bytes, the kind of file every source repository has at its root.

The exact size is useful on its own. 4,096 bytes is a common buffer and memory page size, so the file lands exactly on a boundary that exposes off-by-one mistakes in code that reads text in fixed chunks. Its content makes it a realistic input for renderers, syntax highlighters and documentation tools.

Use it to test Markdown rendering in editors and previews, static site generators, search indexers, and upload forms that accept .md files. It is UTF-8 with LF line endings and is served as text/markdown, so it also checks how a client handles that MIME type when it does not recognise it. Related formats: text files.

2 files. The same list as JSON: https://loremfile.dev/md/index.json

Markdown files
FileSizePropertiesDescription
all-elements.md 920 B utf-8, LF Markdown exercising every common element: headings, emphasis, ordered and nested lists, a table, fenced code blocks with languages, a blockquote, a link, an image, a footnote and a raw HTML block.
Snippets
curl -O https://loremfile.dev/md/all-elements.md
<a href="https://loremfile.dev/md/all-elements.md">download</a>
readme-style.md 4.1 KB utf-8, LF A README-shaped Markdown document of exactly 4,096 bytes.
Snippets
curl -O https://loremfile.dev/md/readme-style.md
<a href="https://loremfile.dev/md/readme-style.md">download</a>

File names follow the naming grammar. Verify a download against sha256sums.txt.