radude / rentry

Markdown pastebin from command line
https://rentry.co
MIT License
453 stars 23 forks source link

Why doesn't rentry.co wrap lines? #6

Closed anonyno closed 4 years ago

anonyno commented 4 years ago

Every other website that uses markdown rewraps the lines. For example, I have compared the output of rentry's Markdown engine to that a number of other Markdown implementations.

As you can see, 37 out of the 38 markdown implementations tested in that website put the entire paragraph into a p element, rather than adding br elements everywhere the user pressed enter in the source. It would make it easier for new users if you did that too.

radude commented 4 years ago

Yeah rentry uses line breaks. It is rather popular behavior, just no the default one. A lot of the markdown engines have some sort of extension or option for this: 1 2 3

I believe GitHub also uses nl2br but for comments only.