remram44 / matrix-appservice-gitter-twisted

Matrix-Gitter bridge using Twisted
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

Images from Gitter to Matrix #11

Open remram44 opened 7 years ago

remram44 commented 7 years ago

Markdown issue, follows on #7

Gitter allows the ![alt](http://image.png) syntax to insert images in messages. Even though I correctly render to <img> in HTML, Riot strips it, only rendering attachments and previews.

I don't know how to fix this. There is just no way to get Riot to render embedded images.

remram44 commented 7 years ago

7d41034f renders images as a link. The problem is when the original image is inside a link (Gitter generates [![alt](thumb_url)](fullsize_url)), then clicking will bring you to the image and not the link.

remram44 commented 7 years ago

Emoji gets turned into images by pymdown. I added a workaround to ignore those, but really they should be unicode.

Filed facelessuser/pymdown-extensions#19

remram44 commented 7 years ago

82afa9d0 fixes emoji rendering.