Skip to content

Latest commit

 

History

History
111 lines (87 loc) · 1.85 KB

File metadata and controls

111 lines (87 loc) · 1.85 KB
id MDS049
name no-space-in-link-text
status ready
description Link text and image alt text must not have leading or trailing whitespace inside the brackets.
category link
nature style
maintainability
markdownlint
id name partial default
MD039
no-space-in-links
false
true
rumdl
id name partial default
MD039
no-space-in-links
false
true
mado
id name partial default
MD039
no-space-in-links
false
true
panache
obsidian-linter
gomarklint

MDS049: no-space-in-link-text

Link text and image alt text must not have leading or trailing whitespace inside the brackets.

[ click here ](url) renders the spaces as part of the underlined text in most renderers.

Config

Enable:

rules:
  no-space-in-link-text: true

Disable:

rules:
  no-space-in-link-text: false

Disable image alt-text checking:

rules:
  no-space-in-link-text:
    check-images: false

Examples

Bad

# Title

[ text ](https://example.com)

Good

# Title

Visit [example](https://example.com) for more.

![logo](good/logo.png)

Meta-Information

  • ID: MDS049
  • Name: no-space-in-link-text
  • Status: ready
  • Default: disabled (opt-in)
  • Fixable: yes
  • Implementation: source
  • Category: link
  • markdownlint: MD039 (no-space-in-links)
  • rumdl: MD039 (no-space-in-links)
  • mado: MD039 (no-space-in-links)