Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Markdown, is there an official best practice as relates to line length?

I txt files, and when writing code, it seems to be accepted best practice to use 80-characters per line. This also applies to lines of text in a paragraph. If my paragraph contains 320 characters, it should be written as three separate lines. Is there a markdown standard that defines whether or not this is best practice, for example for GitHub README.md files?

like image 443
alberto56 Avatar asked Apr 29 '15 22:04

alberto56


1 Answers

There is no best practice for wrapping in Markdown. The only mention of wrapping in the original spec says that hard wrapping is permitted:

The implication of the "one or more consecutive lines of text" rule is that Markdown supports "hard-wrapped" text paragraphs.

Similarly, the CommonMark spec and the GitHub Flavored Markdown page make no mention of a best practice when it comes to hard wrapping. There are many other implementations of Markdown, but I suspect that most take the same approach.

Certainly some projects might have best practices, but they will vary.

like image 132
Chris Avatar answered Sep 24 '22 16:09

Chris