html-to-mrkdwn icon indicating copy to clipboard operation
html-to-mrkdwn copied to clipboard

Add support for bold headings

Open ismailcherri opened this issue 1 year ago • 0 comments

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

image

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.

ismailcherri avatar Dec 13 '23 15:12 ismailcherri