Skip to content

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
image image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Add a BMP image to some repository, let's say the image is zuk.bmp in the root directory
  2. In the README.md include the following:
![hmm](zuk.bmp)
  1. Commit and push changes and observe the current broken behaviour, as well as working with the MR.

Merge request reports