you can take your timea little kindness, alwaysno perfect words neededyou’re lovely companya soft place to landwe saved you a little space
Loading page…
code
Feed this file directly into the Markdown-to-TSX parser. The examples are live Markdown with readable content. CommonMark and GFM come first; optional dialect features follow. Raw HTML and JSX input are excluded.
Whitespace is intentional: this file contains real tabs, trailing spaces, mixed line endings in one paragraph, and no final newline. Code blocks contain code, not a wrapper around the document.
code and a linkcodeA short paragraph about reading a document.
A second paragraph about rendering the same document.
This paragraph begins on one source line and continues on another source line without an explicit hard break.
This line ends with two spaces.
The next line follows a hard break.
This line ends with a backslash.
The next line follows another hard break.
This line ends with four spaces.
The next line follows a hard break too.
This line ends with one space. The next line follows a soft break.
This paragraph ends before several blank lines.
This paragraph starts after those blank lines.
This paragraph starts with three spaces.
This paragraph contains several internal spaces and a real tab.
This paragraph ends before a whitespace-only line.
This paragraph starts after the whitespace-only line.
This sentence ends with a CRLF line ending. This sentence ends with a lone carriage return. This sentence returns to an LF line ending.
The asterisk phrase is emphasised.
The underscore phrase is emphasised.
The asterisk phrase is strong.
The underscore phrase is strong.
The asterisk phrase combines both.
The underscore phrase combines both.
A strong phrase containing an emphasised phrase and more strong text.
An emphasised phrase containing a strong phrase and more emphasis.
A strong phrase containing an emphasised phrase and more strong text.
An emphasised phrase containing a strong phrase and more emphasis.
Strong text with inline code and a documentation link.
Emphasis begins on one line and continues on the next.
Strong text begins on one line and continues on the next.
leftmiddleright and leftmiddleright.
snake_case_name and snake__case__name.
(Emphasis inside parentheses) and [strong text inside brackets].
“Emphasis inside curly quotes” and «strong text inside guillemets».
One phrase another phrase and one phrase another phrase.
Both, strong with emphasis, and emphasis with strong.
Four delimiters around a phrase
Five delimiters around a phrase
Run bun --version before opening the editor.
The expression price * quantity stays literal.
The string **strong** and _emphasis_ stays literal.
The string [documentation](https://commonmark.org/) stays literal.
Two backticks can contain a single one: const delimiter = '`';.
Three backticks can contain a pair: const delimiter = '``';.
Padding permits a backtick at each edge: `value`.
One surrounding space is stripped: value.
Extra surrounding spaces leave one at each edge: value .
A span containing only spaces preserves them: .
A code span can cross a source line: first line second line.
These escapes and references stay literal inside code: \* & ©.
Code binds more tightly than emphasis here: read * as punctuation.
*These asterisks are literal*.
_These underscores are literal_.
**These double asterisks are literal**.
# This line begins with a literal hash.
- This line begins with a literal hyphen.
+ This line begins with a literal plus.
* This line begins with a literal asterisk.
1. This line begins with an escaped list delimiter.
1) This line begins with an escaped parenthesis.
> This line begins with a literal greater-than sign.
`These backticks are literal`.
[This label](https://commonmark.org/\) stays visible.
 stays visible.
A single backslash: \.
An escaped backslash followed by emphasis: \emphasised words.
An escaped ampersand leaves the reference literal: ©.
All escapable ASCII punctuation, grouped by character family:
! " # $ % & ' ( ) * + , - . /
: ; < = > ? @ [ \ ] ^ _ ` { | } ~
Backslashes before letters remain visible: \a \z \Q.
Backslashes before digits remain visible: \1 \9.
Ampersand: &. Less than: <. Greater than: >.
Double quote: ". Apostrophe: '. Copyright: ©.
Registered mark: ®. Trademark: ™. Non-breaking space: north shore.
Decimal references: A © 😀.
Hexadecimal references: A © 😀.
Multiple Unicode code points from one named reference: ≂̸.
Decoded punctuation remains text: *emphasis markers*.
An entity at the start does not become a heading marker:
# A literal hash at the start of a paragraph.
The same references inside code: & A A.
Invalid references remain visible: ¬ARealEntity; © &#; &#x;.
Invalid numeric code points: � � �.
Three hyphens:
Three asterisks:
Three underscores:
Hyphens separated by spaces:
Asterisks separated by spaces:
Underscores separated by spaces:
Longer runs:
Leading indentation:
A single quoted paragraph.
An ordinary paragraph separates the next quote.
A quoted paragraph starts here and continues on another source line.
An ordinary paragraph separates the next quote.
The first quoted paragraph.
The second quoted paragraph.
The outer quotation.
A quotation inside it.
A third level of quotation.
Back in the outer quotation.
A heading inside a quote
A paragraph with bold, emphasis,
codeand a link.
- A quoted list item.
- Another quoted list item.
tsconst message = "Read the quoted example."; console.log(message);
A quoted paragraph starts with a marker. This unmarked source line continues that quoted paragraph.
This paragraph is outside the quote.
This paragraph follows an empty quote.
No space after the quote marker.
This paragraph separates two quote blocks.
Three spaces before the quote marker.
The first item has a paragraph.
The same item has a second paragraph.
The second item has its own paragraph.
A separate list follows.
Read the first paragraph.
Read the second paragraph in the same item.
A quoted sentence within the item.
const count = [2, 4, 6].length;
console.log(count);
A paragraph after the internal thematic break.
Read the second item.
A bullet containing indented code:
const total = 12 + 8;
console.log(total);
A bullet after that code block.
CommonMark with a double-quoted title
CommonMark with a single-quoted title
CommonMark with a parenthesised title
A title containing escaped quotes
A title containing an ampersand
A title on the following source line
An angle-delimited destination
Query parameters and a fragment
A relative directory destination
An empty angle-delimited destination
A label with [balanced brackets]
A label with [escaped brackets]
A label containing a closing bracket in code: ]
A label beginning on one line and ending on another
An empty label occurs between these words: after.
Read the complete specification
A differently capitalised label
The first duplicate definition wins
A label containing an escaped bracket
The quoted definition also works here.
The list definition also works here.
https://spec.commonmark.org/0.31.2/?view=full&mode=read#links






![Quotes: "GitHub" & braces: {mark} The GitHub mark with emphasis, code, [brackets], "quotes" and {braces}](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png)
Tea: 2 cups
Coffee: 1 cup
Water: 3 glasses
class Basket {
constructor(private readonly prices: readonly number[]) {}
total() {
return this.prices.reduce((sum, price) => sum + price, 0);
}
}
console.log(new Basket([4, 6, 8]).total());
const colours = ["red", "green", "blue"];
console.log(colours.join(", "));
{
"title": "Markdown rendering catalogue",
"enabled": true,
"colours": ["red", "green", "blue"]
}
title: Markdown rendering catalogue
enabled: true
colours:
- red
- green
- blue
title = "Markdown rendering catalogue"
enabled = true
colours = ["red", "green", "blue"]
printf '%s\n' 'Markdown keeps this command literal.'
SELECT colour, LENGTH(colour) AS letters
FROM (VALUES ('red'), ('green'), ('blue')) AS colours(colour);
colours = ["red", "green", "blue"]
print(", ".join(colours))
package main
import "fmt"
func main() {
fmt.Println("Markdown rendering catalogue")
}
fn main() {
println!("Markdown rendering catalogue");
}
.document {
max-width: 72ch;
margin-inline: auto;
line-height: 1.6;
}
const colours = new Set(["red", "green", "red"]);
console.log(colours.size);
# This heading is code content.
```ts
console.log("The shorter fence stays inside the code block.");
```
The closing fence below contains five backticks.
Three tildes do not close a four-tilde fence.
~~~
This is still code content.
Tildes do not close a backtick fence.
~~~
This is still code content.
Three leading spaces are removed from these lines.
Two additional spaces remain on this line.
const colours = ["red", "green", "blue"];
First line.
Fourth line.
const drink = "tea";
console.log(drink);
console.log("This line keeps four spaces.");
This paragraph follows the indented code.
const drink = "coffee";
console.log(drink);
This paragraph follows code indented with real tabs.
# Heading markers remain code.
**Emphasis markers remain code.**
[Links remain code.](https://commonmark.org/)
& remains code.
This is the paragraph before the heading.
This is the paragraph before the quote.
The quote begins immediately after it.
This is the paragraph before the fence.
The fence begins immediately after it.
This is the paragraph before the list.
This is the paragraph before the list.
The following source line belongs to this paragraph. 2. It does not start a new list here.
This paragraph starts without indentation. This source line still belongs to the paragraph.
The next rule follows a blank line.
This paragraph ends before a line of asterisks.
[An outer label with an inner link](https://github.github.com/gfm/)
Café, naïve, jalapeño, façade, Ångström.
Precomposed: café. Combining accent: café.
日本語。한국어. 中文。Русский. Ελληνικά.
العربية، עברית, and English share this paragraph.
😀 ❤️ 🧑💻 👨👩👧👦 🇦🇺 🏳️🌈
→ ← ↑ ↓ ↔ ∞ ≠ ≤ ≥ ± ÷ × ✓
Non-BMP characters: 𐍈 𝄞 𝒜.
Ordinary braces: {value}, {enabled: true}, and {1 + 2}.
Template-like text: ${total}, {{name}}, and ${"quoted value"}.
Quotes and slashes: "double", 'single', C:\Users\Reader\Documents.
Operators in prose: 2 < 5 && 9 > 3.
Ampersands in prose: tea & coffee, R&D, fish & chips.
Backticks protect an object expression: ({ enabled: true, label: "Read" }).
A quote containing {state}, "double quotes", 'single quotes' and \ backslash.
These sections add the non-HTML extensions from the formal GFM specification.
The old wording The replacement wording.
A single-tilde deletion A replacement.
Strong text inside a deletion
Emphasis inside a deletion
Deletion inside strong text
A deletion containing code and a link
A deletion begins on this line
and ends on this line.
Three tildes within a paragraph remain literal: ~~~these words~~~.
inline code.
- Read the quoted item.
- Read the next quoted item.
Review the complete document.
Include the optional extension section in the review.
Save the source file.
[ ] An unchecked marker outside a list.
[x] A checked marker outside a list.
| Drink | Quantity | Available |
|---|---|---|
| Tea | 2 | Yes |
| Coffee | 1 | Yes |
| Juice | 3 | No |
| Default | Left | Centre | Right |
|---|---|---|---|
| Tea | Green | Warm | 12.50 |
| Coffee | Black | Hot | 4.25 |
| Drink | Quantity |
|---|---|
| Tea | 2 |
| Coffee | 1 |
| Drink | Quantity |
|---|---|
| Tea | 2 |
| Coffee | 1 |
| Drink | Quantity |
|---|---|
| Tea | 2 |
| Feature | Content |
|---|---|
| Strong | Tea |
| Emphasis | Coffee |
| Combined | Water |
| Deletion | |
| Code | drink.name |
| Link | CommonMark |
| Reference | GFM specification |
| Escapes | *literal asterisks* |
| Entities | Tea & coffee |
| Unicode | 日本語 🧑💻 |
| TSX text | {quantity} & "price" |
| Context | Content |
|---|---|
| Plain text | Tea | coffee |
| Inline code | tea | coffee |
| Strong text | tea | coffee |
| First | Second | Third |
|---|---|---|
| Tea | Water | |
| Coffee | ||
| Drink | Quantity |
|---|---|
| Tea | |
| Coffee | 2 |
| Drink | Quantity |
|---|
| Drink |
|---|
| Tea |
| Coffee |
Drink Quantity Tea 2 Coffee 1
Drinks to prepare:
| Drink | Quantity |
|---|---|
| Tea | 2 |
| Coffee | 1 |
Prepare the cups next.
| Drink | Quantity |
|---|---|
| Tea | 2 |
This quote follows the table.
| Drink | Quantity | Available | | --- | --- | | Tea | 2 | Yes |
Drink | Quantity Tea | 2 Coffee | 1
A URL followed by punctuation: https://commonmark.org/.
A URL followed by a comma: https://commonmark.org/, followed by more text.
A URL in parentheses: (https://commonmark.org/).
A URL with balanced parentheses: https://en.wikipedia.org/wiki/Markdown_(markup_language).
A query string: https://spec.commonmark.org/0.31.2/?view=full&mode=read#links
A URL followed by an entity: https://commonmark.org/©
A code span keeps the URL literal: https://commonmark.org/.
A quoted reading checklist
Read the core syntax and optional extensions.
- Review inline content.
Compare strong, emphasis,
deletionandcode.Follow a reference link.
Keep the inner quote within its list item.
tsconst sections = ["core", "gfm", "extensions"]; console.log(sections.length);- Review block content.
Area Progress Inline content 100% Block content 75%
- Review the nesting.
- Review the final output.
This ordinary paragraph follows the complete quoted structure.
Strong text with emphasis and code, a deletion with strong text, and a link with emphasis share one paragraph.
These are separate, documented extensions rather than one universal Markdown standard. Unsupported forms may remain text or receive ordinary Markdown parsing. Dialects can conflict: a single tilde can mean GFM deletion or Pandoc subscript.
A short note about the document.1
A longer note about whitespace.2
The first note appears again here.1
A formatted phrase also accepts a note: read the source.3
An unresolved footnote is deliberately left here.[^unwritten]
Progress: ✅ ⚠️ ❌
Reactions: 😄 ❤️ 🚀 👍
Literal Unicode alongside a shortcode: 🚀 🚀
An unknown shortcode: :markdown_parser_has_no_such_emoji:
An inline expression: .
A second inline form: .
Currency without math delimiters: $12.50 and $4.25.
flowchart TD
Document[Markdown document] --> Parse{Recognised block?}
Parse -->|Yes| Render[Render block]
Parse -->|No| Text[Preserve text]
Render --> Page[Rendered page]
Text --> Page
code.
Spaces, tabs and line endings.
A definition can contain another paragraph.
The API receives an HTTP request.
The word APICAL contains the letters API without being the abbreviation.
Read the highlighted phrase carefully.
Read the strong highlighted phrase carefully.
An escaped delimiter remains text: ==highlight markers==.
A power: 210.
A unit: 25 cm2.
A chemical formula: H2O.
Another chemical formula: CO2.
const enabled = true;
A span with attributes
Underlined words
Small capitals

const enabled = true;
console.log(enabled);
This paragraph has a class and an identifier.
A paragraph inside the division.
An uppercase sequence follows.
A Roman-numeral sequence follows.
Automatic numbering follows.
| Drink | Quantity |
|---|---|
| Tea | 2 |
| Coffee | 1 |
The following is a live Pandoc metadata block; Pandoc permits it within a document. It supplies real references for the citations below.
The core syntax has a formal specification [1].
The two specifications describe related dialects [1, 2].
MacFarlane [1] describes reference links and delimiter rules.
Parenthetical citation without the author: [1].
These names refer to this document and its headings; resolution depends on the host application's note system.
custom-markdown-parser-test#CommonMark
custom-markdown-parser-test#ATX headings
"Double-quoted words" and 'single-quoted words'.
A pause... followed by more text.
A range from 3--5 and a sentence---with an interruption.
An apostrophe in don't and an opening quote in 'read this'.
These examples deliberately leave delimiters unmatched or use near-miss forms.
####### Seven hashes before a phrase.
#No separating whitespace after the hash.
##No separating whitespace after two hashes.
# Four leading spaces make this code content.
Literal mid-paragraph delimiters: * space before and after *.
Unclosed emphasis: *read these words
Unclosed strong text: **read these words
An unmatched closing delimiter: read these words*.
An unmatched closing strong delimiter: read these words**.
An empty-looking pair in prose: ** and __.
*Strong begins here but the nesting ends unevenly.
*Emphasis begins here *but the nesting ends unevenly.
Unclosed deletion: ~~read these words
Mismatched counts: ~~read these words~.
This deletion opens ~~before a paragraph break.
The attempted closing delimiter occurs in another paragraph~~.
[An unfinished label
[An unfinished destination](https://commonmark.org/
[A label with a separated destination] (https://commonmark.org/)
[A destination with unescaped spaces](https://commonmark.org/a path)
[An undefined reference][unwritten reference]
[An undefined shortcut reference]
[A title missing its closing quote](https://commonmark.org/ "Read the guide)
No whitespace after this parenthesis.
1234567890. Ten digits exceed the CommonMark list-marker limit.
--
**
__
A single unmatched backtick: `unfinished code
Two unmatched backticks: ``unfinished code
Different delimiter lengths: `unfinished code``.
An unclosed highlight: ==read these words
An unclosed mathematical expression: $x + y
An unclosed wiki link: [[CommonMark
The document reader opens the catalogue, scrolls through the headings, inspects the lists, follows the reference links, compares the tables, and returns to the source to examine the whitespace. A long paragraph keeps its sentence order while mixing strong text, emphasis, inline code, ordinary punctuation, numbers such as 1234567890, Unicode such as 日本語 and 🧑💻, literal braces such as {document}, and a link to the specification. The paragraph continues on the same source line so that line wrapping is handled by the renderer's layout rather than by inserted source line breaks.
A quote after the list.
A code block after the quote.
| Position | Content |
|---|---|
| After the code | A table |
A normal paragraph after the table.
textThis fence has no explicit closer inside the quote. Its container ends before the next paragraph.
This paragraph is outside the quote and remains ordinary Markdown.
A list item with an unclosed fence:
This code ends when its list-item container ends.
This paragraph is outside the list and remains ordinary Markdown.
The final fence is intentionally unclosed. The remaining lines are code content, and the file ends without a trailing newline.
This code block reaches the end of the file.
**These asterisks remain literal.**
[This link syntax remains literal.](https://commonmark.org/)
The final character of the file is this period.
The source includes significant whitespace.
A second paragraph belongs to the same note.
The CommonMark specification describes the baseline syntax. ↩