5

When I try to add image from the web with a link that contains special characters (even after encoding), the link seems to be truncated somewhere.

The link that I pasted into the add image box is:

https://latex.codecogs.com/gif.latex?%5c%73%75%6d%5c%6c%69%6d%69%74%73%5f%7b%69%3d%31%7d%5e%6e%20%28%6e%2b%31%29%5e%33%20%2d%20%5c%73%75%6d%5c%6c%69%6d%69%74%73%5f%7b%69%3d%31%7d%5e%6e%20%6e%5e%33%20%3d%20%28%6e%2b%31%29%5e%33%20%2d%20%31

By right, this should show up as:

Original link

But what I got:

:(

If possible, I would appreciate that the following link is supported by the image uploader, too (since this is how Firefox encodes the link):

https://latex.codecogs.com/gif.latex?%5Csum%5Climits_%7Bi%3D1%7D%5En%20(n%2B1)%5E3%20-%20%5Csum%5Climits_%7Bi%3D1%7D%5En%20n%5E3%20%3D%20(n%2B1)%5E3%20-%201

I don't demand MathJax being loaded for every site, since it sacrifices user experience on sites that don't use them much. I was very tolerant and even write a function to percentage encode the whole query string and run it in the JS console. However, the image uploader doesn't even accept the fully percentage-encoded link, which left me with even more roundabout choices.

4
  • Can you explain the use case for this? What Stack Exchange site are you uploading this to that does not already support Latex via MathJax?
    – Oded StaffMod
    Commented Feb 7, 2014 at 14:54
  • @Oded: CodeGolf. Just want to explain something over there. (I'd use MathJax already if it is supported...)
    – nhahtdh
    Commented Feb 7, 2014 at 14:56
  • I see. Simple workaround - save the image and upload it.
    – Oded StaffMod
    Commented Feb 7, 2014 at 14:58
  • Another workaround, which works at least in Chrome / Win7 (just tested it) is to copy the image itself instead of its URL to the clipboard and paste it into the upload dialog. But I do agree that this should be fixed. Commented Feb 11, 2014 at 16:11

1 Answer 1

-3

Since there is a simple workaround - downloading the image and uploading it via the file browse option, we will not fix it.

This is an edge case, in particular for Latex - that is simply not something that is worthwhile spending a lot of developer time on.

5
  • So you are telling me to do so for 6-7 images?
    – nhahtdh
    Commented Feb 7, 2014 at 15:01
  • @nhahtdh - I guess so? This is something that may take weeks to find and fix if it ever gets priority, that is.
    – Oded StaffMod
    Commented Feb 7, 2014 at 15:03
  • Alternatively, @nhahtdh, simply use tinyurl or similar. (It doesn't matter that the link may not be permanent, as the SE image uploader will pull the image over to imgur anyway.)
    – TRiG
    Commented Feb 7, 2014 at 15:03
  • @TRiGisTimothyRichardGreen: That is a solution, but the experience is not that much better, though.
    – nhahtdh
    Commented Feb 7, 2014 at 15:05
  • @Oded: I would probably stick to that this time around, but please don't [status-declined] it so fast. The user experience is extremely horrible without Mathjax already. I resorted to writing a JS function to convert the whole link to percentage escape, but the image uploader doesn't even accept the percentage encoded link.
    – nhahtdh
    Commented Feb 7, 2014 at 15:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .