markdownlint/test/reference-links-and-images-shortcuts.md

2.1 KiB

Reference Links and Images (Shortcuts)

Shortcut Handling

Validates the shortcut: shortcut

Missing reference: [missing] {MD052}

Full reference link: text

Collapsed reference link: label

Shortcut reference link: label

Same line: text label label

Mixed case: TEXT LABEL LABEL

With nested brackets: t[ex]t

Shortcut inline code span: code

Shortcut ending in colon: colon:

Missing: [missing] {MD052}

Missing in blockquote: [missing] {MD052}

Code span: [code]

Escaped left: [escaped]

Escaped right: [escaped]

Escaped both: [escaped]

Unmatched [ in text

Unmatched ] in text

Valid Images

Full style: text

Collapsed style: image1

Shortcut style: image2

Image in link: text image4 image5

Image in shortcut link: text image7 image8

Wrapped in brackets: [text]

Embedded [in text brackets]

Invalid Images

Missing: ![missing] {MD052}

Missing in blockquote: ![missing] {MD052}

Non-Images

Escaped left: ![escaped]

Escaped right: ![escaped]

Escaped both: ![escaped]

Valid Footnotes

Footnote1

Invalid Footnotes

Missing[^2] {MD052}

Valid Labels