cmark-gfm icon indicating copy to clipboard operation
cmark-gfm copied to clipboard

Is automatic line breaks a feature of GFM?

Open borekb opened this issue 5 years ago • 1 comments

According to GFM spec on hard line breaks, this Markdown:

one
two

should render as:

one two

This happens when GitHub previews Markdown files like README.md and similar but does not happen here in issues, for example, this is how it renders:

one two

Is there an official spec on how GitHub treats user text written as comments to issues and pull requests? Is it fair to say that GH issues and comments are not GFM since they behave differently from the spec?

borekb avatar Jun 30 '20 16:06 borekb

I swear it used to be documented as a part of GFM pre-CommonMark, but I really can't find such a mention now. Heck, I don't even know whether this library is the exact one they use in the backend...

Artoria2e5 avatar Apr 26 '21 08:04 Artoria2e5