Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
remark-lint-maximum-line-length
Advanced tools
Warn when lines are too long.
Options: number
, default: 80
.
Ignores nodes which cannot be wrapped, such as heasings, tables, code, link, images, and definitions.
npm install --save remark-lint-maximum-line-length
When this rule is 80
, the following file
invalid.md
is not ok:
This line is simply not tooooooooooooooooooooooooooooooooooooooooooooooooooooooo
long.
Just like thiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis one.
And this one is also very wrong: because the link starts aaaaaaafter the column: <http://line.com>
<http://this-long-url-with-a-long-domain-is-invalid.co.uk/a-long-path?query=variables> and such.
4:86: Line must be at most 80 characters
6:99: Line must be at most 80 characters
8:97: Line must be at most 80 characters
When this rule is turned on, the following file
valid.md
is ok:
This line is simply not toooooooooooooooooooooooooooooooooooooooooooo
long.
This is also fine: <http://this-long-url-with-a-long-domain.co.uk/a-long-path?query=variables>
<http://this-link-is-fine.com>
[foo](http://this-long-url-with-a-long-domain-is-valid.co.uk/a-long-path?query=variables)
<http://this-long-url-with-a-long-domain-is-valid.co.uk/a-long-path?query=variables>
![foo](http://this-long-url-with-a-long-domain-is-valid.co.uk/a-long-path?query=variables)
| An | exception | is | line | length | in | long | tables | because | those | can’t | just |
| -- | --------- | -- | ---- | ------ | -- | ---- | ------ | ------- | ----- | ----- | ---- |
| be | helped | | | | | | | | | | . |
The following is also fine, because there is no white-space.
<http://this-long-url-with-a-long-domain-is-invalid.co.uk/a-long-path?query=variables>.
In addition, definitions are also fine:
[foo]: <http://this-long-url-with-a-long-domain-is-invalid.co.uk/a-long-path?query=variables>
FAQs
remark-lint rule to warn when lines are too long
The npm package remark-lint-maximum-line-length receives a total of 57,904 weekly downloads. As such, remark-lint-maximum-line-length popularity was classified as popular.
We found that remark-lint-maximum-line-length demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.