4 ms·
> It's odd how neither this post, nor the spec, nor GitHub's "Mastering Markdown" help page[1], nor the more complete "Basic writing and formatting syntax" page
by y0ghur7_xxx 10y ago
> It's odd how neither this post, nor the spec, nor GitHub's "Mastering Markdown" help page[1], nor the more complete "Basic writing and formatting syntax" page[2], mentions the fact that GitHub treats every newline as a hard break.
Well, actually it does say that "Hard line breaks are for separating inline content within a block."
https://github.github.com/gfm/#hard-line-break https://github.github.com/gfm/#hard-line-break
So two spaces at the end of the line for a <br>, and an empty line for <p>.
- jorams 10y agoRight, but that's not what GFM does. GFM turns any single newline into a <br>.