Matterbridge: [Riot/matrix] Support for markdown by supporting Riot's formatted_body tag

Created on 26 Dec 2018  路  9Comments  路  Source: 42wim/matterbridge

Is your feature request related to a problem? Please describe.
When a message containing markdown is sent to Riot from anothe client (tested with rocket chat) - the markdown is not parsed correctly, as it renders the literal input like in the following example:

riot-rocket

Describe the solution you'd like
I posted this as a question in #matterbridge:matrix.org - I am out of my depth here, but wim answered the following:

i think riot replaces clientside markdown input to commonmark, haven't looked into this.

{"body":"*def*", "format":"org.matrix.custom.html", "formatted_body":"<em>def</em>", "msgtype":"m.text"}

Describe alternatives you've considered
I considered other bridging solutions, but there does not seem to be anything ready for deployment to bridge rocket chat and Riot.

Additional context
I love matterbridge and the versatility it brings to bridging chat protocols. I am heavily advocating it and use it to bridge some rooms of our communities +giveth:matrix.org and +aragon:matrix.org between Telegram/Riot/rocket chat and in the past Slack.

enhancement

Most helpful comment

It should be working master now, you can download dev binaries from https://bintray.com/42wim/nightly/Matterbridge/v1.12.0-65-g04567c7#files

All 9 comments

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__This issue now has a funding of 0.1 ETH (12.77 USD @ $127.7/ETH) attached to it as part of the Aragon DAC fund.__

馃挵 A crowdfund contribution worth 100.00000 ANT (48.22 USD @ $0.48/ANT) has been attached to this funded issue from @krrisis.馃挵

Want to chip in also? Add your own contribution here.

@geleeroyale I'm working on this, is it possible to have this bounty donated to say something like the FSF ?

@42wim Thanks for picking this up so quickly! As for your request - pledged is pledged. This bounty is for the person submitting the closing PR, which will most likely be you ... but it seems like the FSF accepts donations in BTC and LTC. You could claim the bounty and use shapeshift to transform into one or the other and have it sent directly to the FSF.

It should be working master now, you can download dev binaries from https://bintray.com/42wim/nightly/Matterbridge/v1.12.0-65-g04567c7#files

Yes! Thank you so much. Works as intended. Please tell us if you will collect the bounty (its fun - you should try it!)

@geleeroyale I'll try, got to do some research about it first.

鈿★笍 A tip worth 0.10000 ETH (13.58 USD @ $135.78/ETH) has been granted to @42wim for this issue from @. 鈿★笍

Nice work @42wim! To redeem your tip, login to Gitcoin at https://gitcoin.co/explorer and select 'Claim Tip' from dropdown menu in the top right, or check your email for a link to the tip redemption page.

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__This Bounty has been completed.__

Additional Tips for this Bounty:

  • tipped 0.1000 ETH worth 13.58 USD to 42wim.

Was this page helpful?
0 / 5 - 0 ratings