pradyunsg / furo

A clean customizable documentation theme for Sphinx
https://pradyunsg.me/furo/quickstart
MIT License
2.81k stars 321 forks source link

Transparent SVG shown as white background when use ..raw:: #816

Closed KettyKuutvuori closed 4 months ago

KettyKuutvuori commented 4 months ago

What's happening?

When embedding transparent SVG with text content in documentation with .. raw:: html <object data=image-path type="image/svg+xml"></object> A white background is shown despite the file having a transparent background. The same image will show a transparent background as expected when embedded with .. image::.

This happens after we update the Furo theme. Is it possible to embed SVG with text by using.. raw:: html and won't have a white background?

svg-testing-2023 version test-svg-code-2023 As expected, the same image will show a transparent background

Reproducer

  1. Build Sphinx documentation at 'visual studio'
  2. Go to 'terminal' build document '.\make.bat html'
  3. Click on the build document link
  4. Check the images embedded

Expectation

When embedding transparent SVG with text content with .. raw:: html, the background should behave as its original design.

Code of Conduct

pradyunsg commented 4 months ago

Please do not file an issue as noted in https://github.com/pradyunsg/furo/issues/477 as well as the issue template that you have used.