Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 3

Why does markdown in issues respect line breaks


I am a bit confused. When I add single line breaks in a paragraph of a Github issue, the formatter respects those.


When I do in an README.MD file, single line breaks are not respected in a paragraph - which IMHO is the correct behavior.


Is this intended?


2 Replies
Commander Lvl 3
Message 2 of 3

Re: Why does markdown in issues respect line breaks

Well it is indeed a bit confusing and I do not know if this is intentional behaviour. Could a CM clarify on this?

- Mark
Community Manager
Message 3 of 3

Re: Why does markdown in issues respect line breaks

I just tested this in my test repo ...


  1. Issue
  2. Document


using the exact same text in both cases. So, yes, I can confirm that the behavior is different. I don't know if there is a reason behind it, but I'll check with the developers to see if it is intentional.




Edit: Well, I did some quick spelunking through the code base myself just to enrich my own understanding of how things work (because I enjoy that kind of thing). Essentially, we do a bunch of additional processing in issue/PR bodies/comments that we don't do when processing documents in the repository, for example linking of at-mentioned usernames. This causes some divergence in the way the two sets of Markdown is handled. Although I can't promise any specifics about when or even if this will be able to be addressed, I have passed it along to the appropriate team.


Thanks for the tip!