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

3.1 KiB

Reference Links and Images

Full reference link: text

Collapsed reference link: label

Shortcut reference link: label

Same line: text label label

Mixed case: TEXT LABEL LABEL

With spaces: text text

With nested brackets: t[ex]t

With inline content: text

With inline code span: code

Shortcut inline code span: code

Multi-line full text: [multi line][multi line full text]

Multi-line full label: [text][multi line full label]

Multi-line collapsed label: [multi line collapsed label][]

Multi-line shortcut label: [multi line shortcut label]

Dedicated line: text

Dedicated line with trailing colon: text:

Shortcut ending in colon: [colon]:

Use of multi-line label: [multi-line-label][]

Standard link: text

Missing label: [text][missing] {MD052}

Mixed valid/invalid: text [text][missing] {MD052}

Missing multi-line label {MD052}: [text][missing label]

Space: [text] [wrong]

Empty: [text][ ]

Code span: [text][wrong]

Escaped left text: [text][wrong]

Escaped right text: [text][wrong]

Escaped left label: [text][wrong]

Escaped right label: [text][wrong]

Valid Images

Full style: text

Collapsed style: image

Shortcut style: image

Image in link: text image image

Invalid Images

Image only: ![text][missing] {MD052}

Image in link: ![text][missing] {MD052}

Non-Images

Escaped left text: ![text][wrong]

Escaped right text: ![text][wrong]

Escaped left label: ![text][wrong]

Escaped right label: ![text][wrong]

Valid Footnotes

Footnote1

Invalid Footnotes

Missing[^2]

Valid Labels

Invalid Labels

Duplicate: label: {MD053}

Unused: [unused]: {MD053}

Unused footnote:

[Escaped left]: text

[Escaped right]: text

Link and image: text text

Bad link with image [text][missing] {MD052}

Shortcut One-Way Handling

Validates the label: shortcut

Not flagged due to ambiguity: [ignored]

Open Bracket Pairs

Unmatched [ in text

Hidden reference: [hidden][] {MD052}