Linebreak after block element doesn't render properly
Closed this issue · 1 comments
EvitanRelta commented
If theres a line break after a block element (eg. paragraph, or header), Github markdown won't render the linebreak
(though Github issues renders it slightly differently).
Current MarkGH generated markdown | |
---|---|
Code | Rendered on Github |
|
paragraph HEADER |
Expected | |
– |
paragraph HEADER |
Possible Fixes | |
|
paragraph HEADER |
|
paragraph HEADER |
|
(same as above, but also renders the same in Github Issues) |
Proposed fix
The below conversion might be more inclusive (as it renders the same in Github Issues):
paragraph<br><br>
## HEADER
But this one looks cleaner. And since Github Issue's renderer is different, we probably don't need to take it into account?
paragraph
<br><br>
## HEADER
EvitanRelta commented