Skip to content

Workaround for correct inclusion of SVG badges in docutils/reStrucutedText.

Jiří Helebrant requested to merge fix--svg-badges into master

Docutils includes SVGs as <object> tags instead of <img>s because of some ancient IE issues (https://sourceforge.net/p/docutils/bugs/247/). The <object> behaves more or less like an iframe, so it collides with X-Frame-Options sent by Gitlab for badge URLs, resulting in the browser refusing to display the badge.

This is a workaround (from here) to fool it into using regular images.

Edited by Jiří Helebrant

Merge request reports