Allow embedding relative BMP images in markdown
What does this MR do and why?
This MR allows embedding relative BMP images in markdown.
Currently, trying to embed relative BMP image in markdown results in the image not displaying correctly, with just a generic thumbnail.
This is because the generated image URL has 'blob' instead of 'raw'.
To fix that, add '.bmp' image file extension to recognized image extensions.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist.
I have evaluated the MR acceptance checklist and consider this a minor change.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Add a BMP image to some repository, let's say the image is zuk.bmp in the root directory
- In the README.md include the following:
![hmm](zuk.bmp)
- Commit and push changes and observe the current broken behaviour, as well as working with the MR.