markdownlint/test/spaces_inside_link_text.md

2 KiB

Spaces Inside Link Text

foo

"foo"

foo

foo

foo

foo "bar"

{MD039}

foo {MD039}

foo {MD039}

foo {MD039}

"foo" {MD039}

foo {MD039}

foo {MD039}

foo {MD039}

The following shouldn't break anything: Screenshot.png

function CodeButNotCode(input) { return input.replace(/- /g, "one"); // {MD039} }

function MoreCodeButNotCode(input) { input = input.replace(/- /g, "two"); // {MD039} input = input.toLowerCase(); input = input.replace(/- /g, "three"); // {MD039} return input; }

Links
with
error

Non-wrapped link with leading space {MD039}

Non-wrapped link with trailing space {MD039}

Non-wrapped link with leading and trailing space {MD039}

Wrapped link with leading space {MD039}

Wrapped link with leading space {MD009:-1} {MD039:-1}

Wrapped link with trailing space {MD009:-1} {MD039:-1}

Wrapped link with trailing space {MD039}

Wrapped link with leading and trailing space {MD009:-2} {MD039:-2} {MD039}

Wrapped link with leading and trailing space {MD009:-1} {MD039:-1}

link

link {MD039}

link {MD039}

link {MD039}

ref

ref {MD039}

ref {MD039}

ref {MD039}

ref

ref {MD039}

ref {MD039}

ref {MD039}

Not a link, just [ text in ] brackets

Images are  not links