I was trying to edit a fresh user's post to include the image in the post.

So I clicked on edit, then at the appropriate position CTRL-G, switched to "paste" and inserted https://i.imgur.com/lT8q3Ks.png.

That inserted the following markdown:

[![enter image description here][1]][1]

and, at the end of the rendered post:

[1]: https://i.stack.imgur.com/vUEZC.png

This is what it looks like in the post:

enter image description here

This is the post I'm referring to: How to fix: SELECT element only returns the first option's value?

Did I do anything wrong, or do imgur images just work differently due to imgur integration? How do I actually insert that image properly using the GUI?


You didn't finish your code block with


So the [1]: https://i.stack.imgur.com/vUEZC.png is still part of the code block, and the Markdown renderer doesn't treat it as a reference.

But you do have a point; the image uploader isn't smart enough to detect this situation, it'll just append the reference without checking if it will actually be rendered. In the old situation, where code formatting with fences wasn't supported, only the four-spaces method, this would never happen since the reference always started after an extra newline which ends the code block.

  • Thanks, now it works. Didn't realize I had to fix that error in the original post first to be able to insert images above that. Makes sense though. – connexo May 17 at 8:24
  • This is a slightly unusual situation where both you and the uploader are 'at fault', see the update. – Glorfindel May 17 at 8:26
  • Do you think this should be fixed? Or is SO position on this "shit in- shit out"? – connexo May 17 at 8:28
  • If you leave the [bug] tag, someone of the developers will have a look at it eventually and decide whether it's worth fixing. (FWIW, the professional version of that phrase is "garbage in, garbage out".) – Glorfindel May 17 at 8:29

You must log in to answer this question.

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