Skip to content

Gitlab rst rendering ignores image width

Hi,

There is an issue with gitlab.com not rendering README.rst image tags correctly.

Gitlab is ignoring image attribute tags in the README render.

Here are the tags expected: https://docutils.sourceforge.io/docs/ref/rst/directives.html#image

The sytnax tested:

width at 100px
--------------
.. image:: https://www.zookcabins.com/wp-content/uploads/blog-posts/planning-hunting-cabin/beautiful-custom-log-cabin-hunting-lodge.jpg
  :alt: demo image
  :width: 100px

A demo repository demonstrating the issue: https://gitlab.com/christopher.pickering/readme-rst-test/-/blob/master/README.rst

I would expect Gitlab to parse the image attributes and add them to the HTML output.