# Fix #11 — Reference-style link / image definitions
## Full reference
See [the CommonMark spec][cm] for details.
## Collapsed reference
The [Wikipedia][] entry has more context.
## Shortcut reference
A bare [Rust] is also a link if a definition exists.
## Reference image
![cat][catpic]
## Unresolved shortcut stays as text
The phrase [No Such Label] should remain literal — it has no matching
definition, so it must NOT become a link.
## Inline still beats reference
[CommonMark][cm] uses the reference, but
[CommonMark](https://example.com/inline) uses the inline URL even though
the same label exists.
## Definitions (these lines should be invisible in the rendered PDF)
[cm]: https://commonmark.org "CommonMark spec"
[Wikipedia]: https://en.wikipedia.org/wiki/Markdown "Wikipedia entry"
[Rust]: https://www.rust-lang.org
[catpic]: https://example.com/cat.png "A cat"