matrix-org / matrix-org/matrix-hookshot

GitHub notification including images can not display images

Open
#202 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

GitHub S-Minor T-Defect
Dominant language
TypeScript
Stars
450
Forks
95
Avg merge
1d 2h
Merged PRs (30d)
23

Description

Embedding an image in a github issue comment using markdown syntax ![image](https://user-images.githubusercontent.com/etcetcetc.png) will be in the event body verbatim, and in the formatted_body as the appropriate <img> tag. However the latter isn't supported, as it isn't using an mxc:// url as src. The bridge would need to either upload the media, or instead just (deep)link it (convert <img src=XY> to <a href=XY>) which can either be clicked or shown with URL previews.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Trace the GitHub comment bridge path that produces the event body and formatted_body, then inspect how Matrix message media URLs are handled. Confirm whether the intended fix is uploading the image or converting the img element to a link; done means GitHub image markdown no longer emits an unsupported non-mxc image source.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.