Markdown Test Page


A page to test markdown syntax and display features.

This page is a reference for markdown syntax and display, to sanity check that everything is working as expected, and appears properly when converted to HTML. It also tests features that might not be available in default configurations1, definition lists2, mathematical notation3, and tables4.

To see what it should look like, you can see it in action at: cade.io/testpage

Internal link test: link to code block

Text

Basic text in markdown is just plain text, which is rendered as-is. You can bold, italicize, underline, strikethrough, or preformat text by using special syntaces:

Furthermore, multiple styles of text can be combined, like bold italic text, by combining the syntaces: ***bold italic text***. Or, you can create really wild combinations like bold italic underlined strikethrough preformatted text. (though, your readers may not appreciate it).

You can also add footnotes1 like this.

Block Quotes

Block quotes are denoted by prefixing lines with the > character,

> This is a block quote.
>
> It can span multiple lines, and contain other markdown syntax.

A somewhat uncommon feature of block quotes is that they can be nested, for example when a quote contains another quote:

You miss 100% of the shots you don’t take.

— Wayne Gretzky

— Michael Scott

Further, in some cases there can be multiple levels of nesting, which is a good test for ensuring display styles are properly cascading:

I met a traveller from an antique land

Who said:

Two vast and trunkless legs of stone

Stand in the desart. Near them, on the sand,

Half sunk, a shattered visage lies whose frown,

And wrinkled lip, and sneer of cold command,

Tell that its sculptor well those passions read

Which yet survive, stamped on these lifeless things,

The hand that mocked them and the heart that fed:

And on the pedestal these words appear:

My name is Ozymandias, King of Kings:

Look on my works, ye Mighty, and despair!

No thing beside remains. Round the decay

Of that colossal wreck, boundless and bare

The lone and level sands stretch far away.

— Percy Bysshe Shelley, “Ozymandias”

And, we can also just use straightforward block quotes, without any nesting:

We can easily forgive a child who is afraid of the dark;

the real tragedy of life is when men are afraid of the light.

— Plato

No man has the right to be an amateur in the matter of physical training.

It is a shame for a man to grow old without seeing the beauty and strength of which his body is capable

— Socrates

Sample Text

Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit, amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt, ut labore et dolore magnam aliquam quaerat voluptatem. ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur?

At vero eos et accusamus et iusto odio dignissimos ducimus, qui blanditiis praesentium voluptatum deleniti atque corrupti, quos dolores et quas molestias excepturi sint, obcaecati cupiditate non provident, similique sunt in culpa, qui officia deserunt mollitia animi, id est laborum et dolorum fuga. et harum quidem rerum facilis est et expedita distinctio. nam libero tempore, cum soluta nobis est eligendi optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet, ut et voluptates repudiandae sint et molestiae non recusandae. itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Code Snippets

Unicode Symbols

Box Drawing Characters

Unicode provides a set of special characters called box-drawing characters, which allows writing tables, diagrams, and other structures directly with text. Here is a table of the most common ones:

Range0123456789ABCDEF
U+250x
U+251x
U+252x
U+253x
U+254x
U+255x
U+256x
U+257x
U+258x
U+259x

Mathematical Symbols

Unicode provides a set of mathematical operators and symbols, which allows writing mathematical notation and equations directly with text. Here is a table of the most common ones:

Range0123456789ABCDEF
U+220x
U+221x
U+222x
U+223x
U+224x
U+225x
U+226x
U+227x
U+228x
U+229x
U+22Ax
U+22Bx
U+22Cx
U+22Dx
U+22Ex
U+22Fx
ϕ(t)=12π0tex2/2dx\phi(t)=\frac{1}{\sqrt{2\pi}}\int^t_0 e^{-x^2/2} dx j0(k0ajkzk)=k0zn(k0,k1,0k0+k1+=na0k0a1k1)\prod_{j\geq 0}\left(\sum_{k\geq 0}a_{jk} z^k\right) = \sum_{k\geq 0} z^n\left( \sum_{{k_0,k_1,\ldots\geq 0}\atop{k_0+k_1+\ldots=n}}a{_0k_0}a_{1k_1}\ldots \right) π(n)=m=2n(k=1m1(m/k)/m/k)1\pi(n) = \sum_{m=2}^{n}\left\lfloor \left(\sum_{k=1}^{m-1}\lfloor(m/k)/\lceil m/k\rceil \rfloor \right)^{-1}\right\rfloor {(a,,ak as,(b,,bl bsk+1 elements}\{\underbrace{\overbrace{\mathstrut a,\ldots,a}^{k\ a's},\overbrace{\mathstrut b,\ldots,b}^{l\ b's}}_{k+1\ \mathrm{elements}}\}

Lists

Unordered Lists

Here’s an example of an unordered list:

And here’s another example that also nests other lists:

Ordered Lists

Here’s an example of an ordered list:

  1. Item 1
  2. Item 2
  3. Item 3

And here’s another example that also nests other lists:

  1. Item 1
  2. Item 2
  3. Item 3
    1. Item 3.1
    2. Item 3.2
    3. Item 3.3
  4. Item 4
    1. Item 4.1
      1. Item 4.1.1
      2. Item 4.1.2
    2. Item 4.2
      1. Item 4.2.1
      2. Item 4.2.2
  5. Item 5

Definition Lists

Here’s an example of a definition list, which is not standard markdown, but is supported by some markdown processors:

Term 1
Definition 1
Term 2
Definition 2
And it can have multiple definitions
Term 3
Definition 3
And it can have fancy text too

Tables

Here’s an example of a table of the largest cities in the world (from Wikipedia):

RankCityPopulationCountryYear
1Shanghai21,909,814China2020
2Delhi21,359,000India2023
3Karachi20,382,881Pakistan2023
4Beijing18,960,744China2020
5Shenzhen17,444,609China2020
6Kinshasa16,316,000Democratic Republic of Congo2023
7Guangzhou16,096,724China2020
8Lagos15,946,000Nigeria2023
9İstanbul15,907,951Turkey2022

Here’s another which represents the Figurate Number Sequences (i.e. triangular numbers, tetrahedral numbers, and so on):

nnTnT_nSnS_nPnP_n
1111
2345
361015
4102035
5153570
62156126
72884210
836120330
945165495

And those column labels are:

Assets

Images

Here’s an example of an image:

asdf
asdf
NC\N\C

References

  1. Markdown Cheat Sheet, a quick reference and guide to Markdown syntax ↑1 ↑2

  2. Definition Lists, a very cool HTML feature that is sorely missing from common markdown. I use the remark-definition-list plugin to implement support. ↑1

  3. LaTeX Equations, a typesetting system commonly used for mathematical notation. I use the rehype-katex plugin to render LaTeX equations in HTML. ↑1

  4. Markdown Tables - even though it doesn’t support things like a column of headers, or sums at the end, having nice styles on tabular data makes data science easy! ↑1