'Jupyter notebook transparent background on svg

I want to show an svg with a transparent background on jupyter, currently I do this:

display(SVG(image_path + ".svg"))

Which results in:

enter image description here

But I want the background to match, so for example this si what the amrkdown on y dark theme looks like for the same image:

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source