[GH-ISSUE #353] long link over multiple lines enclosed in "<>" does trigger MD034 (no bare URL) #295

Closed
opened 2026-03-03 01:25:30 +03:00 by kerem · 4 comments
Owner

Originally created by @ghost on GitHub (Dec 10, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/353

example link, which can be split onto multiple lines afaik:

(<https://review.opendev.org/gitweb?p=openstack%2Fnova-specs.git;hb=refs%2F
  changes%2F50%2F310050%2F9;f=specs%2Fbacklog%2Ffs-attach-detach.rst>)

still triggers MD034 for me in vs code:

{
	"resource": "REDACTED",
	"owner": "markdownlint",
	"code": {
		"value": "MD034",
		"target": {
			"$mid": 1,
			"external": "https://github.com/DavidAnson/markdownlint/blob/v0.22.0/doc/Rules.md#md034",
			"path": "/DavidAnson/markdownlint/blob/v0.22.0/doc/Rules.md",
			"scheme": "https",
			"authority": "github.com",
			"fragment": "md034"
		}
	},
	"severity": 4,
	"message": "MD034/no-bare-urls: Bare URL used",
	"source": "markdownlint",
	"startLineNumber": 64,
	"startColumn": 5,
	"endLineNumber": 64,
	"endColumn": 78
}

any help would be appreciated.

Originally created by @ghost on GitHub (Dec 10, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/353 example link, which can be split onto multiple lines afaik: ``` (<https://review.opendev.org/gitweb?p=openstack%2Fnova-specs.git;hb=refs%2F changes%2F50%2F310050%2F9;f=specs%2Fbacklog%2Ffs-attach-detach.rst>) ``` still triggers MD034 for me in vs code: ``` { "resource": "REDACTED", "owner": "markdownlint", "code": { "value": "MD034", "target": { "$mid": 1, "external": "https://github.com/DavidAnson/markdownlint/blob/v0.22.0/doc/Rules.md#md034", "path": "/DavidAnson/markdownlint/blob/v0.22.0/doc/Rules.md", "scheme": "https", "authority": "github.com", "fragment": "md034" } }, "severity": 4, "message": "MD034/no-bare-urls: Bare URL used", "source": "markdownlint", "startLineNumber": 64, "startColumn": 5, "endLineNumber": 64, "endColumn": 78 } ``` any help would be appreciated.
kerem 2026-03-03 01:25:30 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@ghost commented on GitHub (Dec 10, 2020):

mhm nevermind, it does not seem to be really supported to split long links onto multiple lines?

do you know any solution to this,beside using a url shortener?

I found this on stackoverflow, but it doesn't seem to work for my markdownflavor (the link brakes at line break):
https://stackoverflow.com/a/27071588

<!-- gh-comment-id:742399650 --> @ghost commented on GitHub (Dec 10, 2020): mhm nevermind, it does not seem to be really supported to split long links onto multiple lines? do you know any solution to this,beside using a url shortener? I found this on stackoverflow, but it doesn't seem to work for my markdownflavor (the link brakes at line break): https://stackoverflow.com/a/27071588
Author
Owner

@DavidAnson commented on GitHub (Dec 10, 2020):

Link references are a great solution here. I make extensive use in https://github.com/DavidAnson/markdownlint-cli2/blob/main/README.md and group all the links at the end of the file where I disable the line length restriction.

<!-- gh-comment-id:742644863 --> @DavidAnson commented on GitHub (Dec 10, 2020): Link references are a great solution here. I make extensive use in https://github.com/DavidAnson/markdownlint-cli2/blob/main/README.md and group all the links at the end of the file where I disable the line length restriction.
Author
Owner

@ghost commented on GitHub (Dec 11, 2020):

Thanks for the idea! Will check out if that works for our documents.

<!-- gh-comment-id:743030351 --> @ghost commented on GitHub (Dec 11, 2020): Thanks for the idea! Will check out if that works for our documents.
Author
Owner

@ghost commented on GitHub (Dec 11, 2020):

mhm, you are using this switch there to disable the check:

<!-- markdownlint-disable line-length -->

however this does not seem to work for me in vs code?

When I add this line it still complains about the check.

Any tips would be appreciated.

:edit: also the documented settings here for vs code do not seem to work for me?

https://github.com/DavidAnson/vscode-markdownlint#suppress

:edit 2:

Nevermind! I'm an idiot! It works! 😁 Thanks so much!

<!-- gh-comment-id:743066413 --> @ghost commented on GitHub (Dec 11, 2020): mhm, you are using this switch there to disable the check: ``` <!-- markdownlint-disable line-length --> ``` however this does not seem to work for me in vs code? When I add this line it still complains about the check. Any tips would be appreciated. :edit: also the documented settings here for vs code do not seem to work for me? https://github.com/DavidAnson/vscode-markdownlint#suppress :edit 2: Nevermind! I'm an idiot! It works! :grin: Thanks so much!
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#295
No description provided.