[GH-ISSUE #283] Auto fix for MD034 includes trailing punctuation #2090

Closed
opened 2026-03-07 20:04:27 +03:00 by kerem · 0 comments
Owner

Originally created by @nschonni on GitHub (May 3, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/283

Copying over from https://github.com/igorshubovych/markdownlint-cli/issues/89

I've noticed on some links, the fix for the bare URLs sometimes includes trailing punctuation like , ) . that aren't included with the auto-URL rendering. Not sure if there is a list that could be ignored for those based on what GHM already ignores at the end of URLs

Examples:

  • Some text then https://example.com, continuing text becomes Some text then <https://example.com,> continuing text
  • Some text (then https://example.com) becomes Some text then <https://example.com)>
  • Some text then https://example.com. becomes Some text then <https://example.com.>
Originally created by @nschonni on GitHub (May 3, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/283 Copying over from https://github.com/igorshubovych/markdownlint-cli/issues/89 I've noticed on some links, the fix for the bare URLs sometimes includes trailing punctuation like `, ) .` that aren't included with the auto-URL rendering. Not sure if there is a list that could be ignored for those based on what GHM already ignores at the end of URLs Examples: - `Some text then https://example.com, continuing text` becomes `Some text then <https://example.com,> continuing text` - `Some text (then https://example.com)` becomes `Some text then <https://example.com)>` - `Some text then https://example.com.` becomes `Some text then <https://example.com.>`
kerem 2026-03-07 20:04:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2090
No description provided.