
A single document that puts every rich-text feature through its paces — headings, emphasis, lists, tables, code, quotes, and the odd edge case.
This article exists for one reason: to stress-test a rich-text editor. Read it for the story if you like, but every paragraph is secretly checking that something renders the way it should. If anything below looks broken, you've found a bug.
The lines below confirm that all six heading levels are distinct.
Headings should descend in size and weight, and most editors will pick them up for an automatically generated table of contents.
Plain text is the baseline. From there we can go bold, italic, or bold and italic together. We can strike text through when it's been revised, and mark inline code for anything technical.
You can also combine styles inside a sentence: a phrase might be bold with a code span tucked inside, or italic containing a link. Some editors support <u>underline</u> and highlighted text via <mark>marked spans</mark>, plus subscript like H<sub>2</sub>O and superscript like E = mc<sup>2</sup>.
A line break can be forced right in the middle of a paragraph using a trailing space or backslash.
First item
Second item
Third item with a longer line of text to confirm that wrapping behaves correctly and the bullet stays put
Nested item one
Nested item two
Doubly nested item
Light the lamp
Wind the clockwork
Log the weather
Record wind speed
Record visibility
Sleep until dusk
[x] Clean the lens
[x] Refill the oil
[ ] Repaint the railing
[ ] Replace the foghorn gasket
Lighthouse : A tower with a bright light at the top, used to warn ships.
Keeper : The person responsible for maintaining the light.
"The sea, once it casts its spell, holds one in its net of wonder forever."
Nested quotes test indentation:
Level one quote.
Level two, nested inside.
Level three, deeper still.
A quote can also contain formatting, a code span, and even a list:
Things the keeper checks each night:
Fuel level
Lens clarity
Horizon for ships
An inline mention of const x = 42; keeps its monospace styling mid-sentence.
A fenced block with syntax highlighting:
def rotate_beam(angle, speed=1.0):
"""Rotate the lighthouse beam by a given angle."""
position = 0
while True:
position = (position + angle * speed) % 360
yield position
Another language, to confirm highlighting switches correctly:
const keeper = {
name: "Morrow",
yearsOfService: 19,
light() {
return `${this.name} is on watch.`;
},
};
And a plain block with no language tag:
no syntax highlighting here
just monospaced text preserving spacing
A basic table with aligned columns:
Lighthouse Height (m) Built Still Active Pharos of Alexandria 100 280 BC No Eddystone 49 1882 Yes Tower of Hercules 55 ~100 Yes Cape Hatteras 64 1870 Yes
The colons in the divider row set alignment: left, center, right, and center. Cells can hold bold, italic, code, and links too:
Feature Status Notes Bold ✅ works in cells Italic ✅ also fine Code ✅ monospace preserved
A standard inline link. A link with a title attribute. An automatic link: https://example.com. A reference-style link defined elsewhere.
An image (which should render, or show alt text if the source is unavailable):

Three different rule syntaxes should all produce the same divider:
The space above and below each line confirms vertical rhythm.
Some editors support footnotes.[^1] Others render the reference inline. Either way, the marker should be clickable.[^note]
Special characters to test escaping and Unicode: em-dash — en-dash – ellipsis … copyright © trademark ™ degrees 23°C arrows → ← ↔ math ½ ≠ ≈ ∞ and emoji 🗼🌊💡.
Escaped characters that should appear literally: not italic, not code, and # not a heading.
[^1]: This is the first footnote, confirming the jump-to-reference behavior works. [^note]: Named footnotes should resolve too.
Putting it together: the keeper, Eliza Morrow, climbed the one hundred and sixty-two spiral steps each evening. Her logbook — kept in a monospace-neat hand — recorded everything: wind from the south southwest, visibility "poor to fair," and the shipping forecast. She'd quote her grandfather:
"A light kept faithfully is a promise kept."
Then she'd check her list:
Lamp lit ✅
Lens clean ✅
Log written ✅
…and the night would begin.
End of test document. If every section above rendered correctly, your editor handles the full feature set.
