mx-puppet-slack icon indicating copy to clipboard operation
mx-puppet-slack copied to clipboard

Bridge Slack snippets to Matrix as code blocks

Open tulir opened this issue 5 years ago • 3 comments

tulir avatar Sep 19 '19 08:09 tulir

Seems this already implemented now? I see formatted code blocks on Matrix side, when Slack message have code blocks. But other way (Matrix -> Slack) seems broken: when I type on Matrix side ( " ` " is repaced to " ' " for keep formatting):

test
'''
code
'''
test2

I see on Slack side:

test<code>code
</code>test2

MurzNN avatar Nov 13 '20 07:11 MurzNN

I believe the issue is with the <code> tags.

Slack accepts the original matrix format (with the triple `), and the <code> tags show as plain text on slack clients.

ZachMyers3 avatar Dec 07 '20 15:12 ZachMyers3

Reading through this more, I believe he's talking about code blocks. They get bridged as a file (see below the comparison)

Slack

image

Element

image

ZachMyers3 avatar Dec 07 '20 16:12 ZachMyers3