Single, double quotes, and profile links are displayed badly in Slack messages
piki opened this issue · comments
When Beam posts to Slack, single quotes are displayed as '
, double quotes are displayed as "
, and links to a user's profile are displayed in <>
angle brackets. All of these display fine on Beam web pages.
Looks like something is getting lost in the SQL -> markdown -> blocks -> POST pipeline.
Slack wants you to escape specific controls characters, &
, <
, and >
:
https://api.slack.com/reference/surfaces/formatting#escaping
But markdownToBlocks from mack seems to HTML entity-encode more than just those three. Didn't see an option to disable that behavior.
Fixed the quotes. Profile links are probably still broken. We will see.
Closing this because it will feel satisfying