docs: Max chars per line enforcement #1625

Open
opened 2026-04-08 08:31:05 +00:00 by stratself · 4 comments
Contributor

There should be consensus on max chars per line in docs which is then somehow enforceable (i.e. by prek?). I've been writing single-lined Markdowns but this doesn't render well in raw, and can complicate docs reviews.

There should be consensus on max chars per line in docs which is then somehow enforceable (i.e. by prek?). I've been writing single-lined Markdowns but this doesn't render well in raw, and can complicate docs reviews.

80 char per line

80 char per line
Contributor

80 is madness, we're not reading on CRTs anymore.

I suggest following the rust style guide, which says "The maximum width for a line is 100 characters." (this is technically for code, but I suggest following it for docs as well)

80 is madness, we're not reading on CRTs anymore. I suggest following the [rust style guide](https://doc.rust-lang.org/beta/style-guide/index.html), which says "[The maximum width for a line is 100 characters.](https://doc.rust-lang.org/beta/style-guide/index.html#indentation-and-line-width)" (this is technically for code, but I suggest following it for docs as well)
Owner

The style guide that I would prefer (and have used when writing docs) has lines at a max of 100 chars, but when forced to wrap, wrapping at 80 chars. This is because re-wrapping creates line noise in a git diff, which I would prefer to avoid.

I'm not sure if there is tooling which correctly enforces this. Suggestions welcome.

The style guide that I would prefer (and have used when writing docs) has lines at a max of 100 chars, but when forced to wrap, wrapping at 80 chars. This is because re-wrapping creates line noise in a git diff, which I would prefer to avoid. I'm not sure if there is tooling which correctly enforces this. Suggestions welcome.
Contributor

I agree with the 100/80 enforcement, I believe something like markdownlint could work? It has configurable line lengths

I agree with the 100/80 enforcement, I believe something like [markdownlint](https://github.com/DavidAnson/markdownlint) could work? It has configurable line lengths
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
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
continuwuation/continuwuity#1625
No description provided.