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

Link to code in markdown

Open bkeepers opened this issue 7 years ago • 1 comments

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

bkeepers avatar Jan 08 '18 22:01 bkeepers

(@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:

  • https://github.com/integrations/slack/issues/509
  • https://github.com/integrations/slack/issues/52

stephenyeargin avatar Apr 18 '18 14:04 stephenyeargin