When using sphinx with readthedocs, any image directive I put into my ReST document gets wrapped in an anchor tag.
In other words, this: .. image:: ./foo/bar/baz.png Becomes this: <a class="reference internal image-reference" href="_images/foo/bar/baz.png"><img alt="Baz PNG" src="_images/foo/bar/baz.png"></a> And not simply this: <img alt="Baz PNG" src="_images/foo/bar/baz.png"> The problem is that the anchor tag adds an underline underneath anchored elements, include the image. This makes the images look strange and the web page behave in an unexpected way. Is there an argument or option I can add to the image directive, to prevent it from being wrapped in an anchor tag? Failing that, is there an argument or option I can add to the image directive, to add an existing class that removes the anchor tag decorations? Failing that, is there a way to add custom CSS directives that try to forcibly remove this decoration from img elements nested within an anchor element? Thanks for your advice! Regards, Alex -- 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.
