Full reference: click here

Collapsed reference: example

Shortcut reference: example

Image full: alt text

Image collapsed: foo

Image shortcut: foo

Multiple words in text: click here for more info

Empty label (collapsed): test

Shortcut that looks like text: [undefined]

Mixed with inline: inline and ref

Nested in paragraph: This is a paragraph with a reference in the middle.

Case-insensitive: case label

Whitespace normalized: case label

Escaped bracket in label: text