integrations / html-to-mrkdwn

Convert HTML to Slack's mrkdwn format
65 stars 20 forks source link

Consecutive headers need a newline between them #21

Closed devrelm closed 6 years ago

devrelm commented 6 years ago

When creating a Release on GitHub with two headers in the description like so:

## Released

### Changed

the /integrations/slack integration created a slack post like this:

image

My guess is that the markdown is being converted to an <h2> and <h3> with no space between them, and that html-to-mrkdwn is not going out of its way to add a newline back.

Because the <h1> through <h6> tags default to display: block, they naturally stack when viewed in a browser. As such, the expected behavior should be that headers – once converted – always begin and end with a newline.