integrations / html-to-mrkdwn

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

Link to code in markdown #10

Open bkeepers opened 6 years ago

bkeepers commented 6 years ago

If you paste a link to code on GitHub in a comment, the code snippet gets rendered as a table. This should probably just be translated into a link to the file and a code snippet in mrkdwn.

slack_-_github
stephenyeargin commented 6 years ago

(@izuzak sent me over as this may be the component that needs ❤️ to address things. Let me know if this belongs in another repository.)

Scenario:

  1. Go to a particular PR and get a permalink to a particular block of code
  2. Add that permalink as part of a comment on a PR
  3. The GitHub integration takes that comment and posts it to Slack
  4. Observe code block formatting lost in translation

GitHub Comment

github view

Slack Post

slack view


Linking these as they appear to be related: