html-to-mrkdwn
html-to-mrkdwn copied to clipboard
Add support for bold headings
Hi!
We have a GitHub bot that displays a certain pull request message. In this message we have a bold heading, thus in GitHub integration for Slack, the message appears without being bold with double asterisks on both ends
This PR adds a rule that deals with this case. It just returns the content of the strong element if it is a direct child of a heading; thus avoiding the double asterisks.
I also added a condition for the <b/>
tag. I'm not entirely sure if it is needed but suggestions are of course welcome.