Markdown line length linter #348
Closed
opened 2022-08-21 09:34:21 +00:00 by pat-s
·
5 comments
No Branch/Tag Specified
No results found.
v10.6.0
v10.5.0
v10.4.1
v10.4.0
v10.3.0
v10.2.0
v10.1.4
v10.1.3
v10.1.2
v10.1.1
v10.1.0
v10.0.2
v10.0.1
v10.0.0
v9.6.1
v9.6.0
v9.5.1
v9.5.0
v9.4.0
v9.3.0
v9.2.1
v9.2.0
v9.1.0
v9.0.4
v9.0.3
v9.0.2
v9.0.1
v9.0.0
v8.3.0
v8.2.0
v8.1.0
v8.0.3
v8.0.2
v8.0.1
v8.0.0
v7.0.4
v7.0.3
v7.0.2
v7.0.1
v7.0.0
v6.0.5
v6.0.4
v6.0.3
v6.0.2
v6.0.1
v6.0.0
v5.0.9
v5.0.8
v5.0.7
v5.0.6
v5.0.5
v5.0.4
v5.0.3
v5.0.2
v5.0.1
v5.0.0
v4.1.1
v4.1.0
v4.0.3
v4.0.2
v4.0.1
v4.0.0
v3.1.4
v3.1.3
v3.1.2
v3.1.1
v3.1.0
v3.0.0
v2.2.5
v2.2.4
v2.2.3
v2.2.2
v2.2.1
v2.2.0
v2.1.11
v2.1.10
v2.1.9
v2.1.8
v2.1.7
v2.1.6
v2.1.5
v2.1.4
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.0.7
v2.0.6
v2.0.5
v2.0.4
v2.0.3
v2.0.2
v2.0.0
v1.5.5
v1.5.4
v1.5.3
v1.5.2
v1.5.1
v1.5.0
v1.4.9
v1.4.8
v1.4.7
v1.4.6
v1.4.5
v1.4.4
v1.4.3
v1.4.2
Labels
Clear labels
has/backport
in progress
invalid
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/refactor
kind/security
kind/testing
kind/translation
kind/ui
need/backport
priority/critical
priority/low
priority/maybe
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/other
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: lunny/helm-chart#348
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is set to 80 chars. Do we really want that/need it?
I've never come across a line length linter for non-code, i.e. normal text.
Experienced this in https://drone.gitea.com/gitea/helm-chart/710/1/4, #347.
Indeed 80 chars feels a bit short. We could increase it to 120 or even 200 if we want. I would prefer to set a limit generally, because it makes it easier to navigate/read the doc in plaintext while modifying it. Otherwise, you might end up having one large line that gets rendered across multiple lines as a whole paragraph.
I am personally way more distracted if a sentence is split into two lines at any given point than spanning across multiple (wrapped) lines.
Usually there's a difference in editors and editor settings are also the reason for the splitting in the first place (some don't wrap lines but just break directly).
Especially on wide screens such breaks in sentences do not just look odd but also make text hard to read.
I am wondering a bit about this enforcement here in general as this is the first time I do encounter a line length discussion for plain text. Discussing code line length is a different thing (and I am also in the 80 - 100 limit club there) but isn't the "best practice" for plain text:
(?)
Fair points. I guess the limit was just kept enabled by default (see
6033ecf03c/lib/mdl/rules.rb (L214)
) but disabled for code blocks and tables. Reference for our.markdownlint.yaml
seems to be https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml.My suggestion to increase the limit instead of removing it is my personal preference. It seems that no actual "best practice" for line length in markdown exists. So I am happy with any outcome of this issue. ?
@luhahn?
Best practices are always subjective to some degree :D
Increasing is is definitely better than doing nothing, even though I still believe that for plain text no limit should exist.
Maybe let's see what others think?
I'm fine with increasing the limit :) 80 chars are indeed a bit short