You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
svg images in ReST documents omitted due to use of <object> tag filtering #264
Historically, I think object was the most reliable way to embed SVG, but now it looks like the img tag works in all browsers. I don't know what it would take to get ReST to generate an img tag, but that's what needs done.
Awesome. My python is not strong, but I'm guessing it would be possible to implement this in the GitHubHTMLTranslator in rest2html for now. Pull requests are welcome!
Activity
bkeepers commentedon Mar 7, 2014
What is the output generate? We definitely can't allow
objectdue to security and usability concerns.mr-c commentedon Mar 7, 2014
On Fri, Mar 7, 2014 at 5:15 PM, Brandon Keepers notifications@github.comwrote:
bkeepers commentedon Mar 8, 2014
Historically, I think
objectwas the most reliable way to embed SVG, but now it looks like theimgtag works in all browsers. I don't know what it would take to get ReST to generate animgtag, but that's what needs done.Remove this for now
mr-c commentedon Mar 10, 2014
I've filed a bug with a patch to docutils to fix this: https://sourceforge.net/p/docutils/bugs/247/
bkeepers commentedon Mar 10, 2014
Awesome. My python is not strong, but I'm guessing it would be possible to implement this in the
GitHubHTMLTranslatorinrest2htmlfor now. Pull requests are welcome!Revert "use SVG badges in README... more readable"
myint commentedon Apr 12, 2014
A temporary hack to workaround this is to put some junk at the end of the URL to fool docutils.
myint/perceptualdiff@6e769cb#diff-88b99bb28683bd5b7e3a204826ead112R15
Try removing SVG workaround in readme