Sample Markdown files for testing parsers, free and CC0
This is a Markdown test file that uses every common element, free to hotlink or download.
https://loremfile.dev/md/all-elements.md · 920 B · text/markdown; charset=utf-8 · utf-8 · LF · 50 lines
md/all-elements.md has 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.
Markdown is plain text with lightweight formatting, and every renderer treats its corners a
little differently.
md/readme-style.md is a README-shaped document of exactly 4,096 bytes, the kind of file
every source repository has at its root. 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.
md/long-with-toc-and-footnotes.md is a long document whose contents list links every
section heading by anchor, with numbered footnotes at the end. Every link and footnote
resolves, so a renderer or converter that drops one shows the failure.
Use them to test Markdown rendering in editors and previews, static site generators, search
indexers, and upload forms that accept .md files. They are UTF-8 with LF line endings and
are served as text/markdown, so they also check how a client handles that MIME type when it
does not recognise it. Related formats: text files.
| File | Size | Properties | Description |
|---|---|---|---|
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
|
long-with-toc-and-footnotes.md
|
24.4 KB (24,433 bytes) | utf-8, LF | A long document: a contents list linking all sixteen section headings by anchor, and six numbered footnotes, with every link and every reference resolving.
Snippets
|
readme-style.md
|
4.1 KB (4,096 bytes) | utf-8, LF | A README-shaped Markdown document of exactly 4,096 bytes.
Snippets
|
Every Markdown file in one command, each checked against its hash: npx loremfile get --format md, or loremfile get --format md after pip install loremfile.
Related formats
File names follow the naming grammar. Verify a download against sha256sums.txt.