[sphinx-users] tag for .svg images in html output

Tue, 04 Aug 2015 09:41:38 -0700

Hi,

I'd like my documentation to contain .svg images which contain hot 
<xlink:href="uri"> tags.

When I use the figure directive, the generated html contains:

<div class="figure">
    <img src="../images/foo.svg" />
</div>

and the xlinks in foo.svg don't work.

If I alter the .html to:

<div class="figure">
    <object height="100%" width="100%" 
        data="../images/foo.svg" type="image/svg+xml"/>
</div>

Then the xlinks work and everything is "great."

I'm new to this technology. I can easily post process the html, but it 
would seem easier to add support for .svg images to be rendered as <object> 
rather than <img>. I searched for an extension and didn't find one. 

BTW, I also receive an "image file not readable" error when I generate the 
html.

Yours,
Jonathan Weintraub

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to