-1

Stack Exchange is interpreting some of my images as "un-indented/un-formatted code".
It won't let me post.
This is the part that is being flagged:

[![SecondImage][2]][2]  
[![ThirdImage][3]][3]  
[![FourthImage][4]][4]
6
  • 8
    We need your complete post to understand what might be wrong. Can you post a gist or a screenshot here?
    – rene
    Commented Jan 4, 2016 at 18:36
  • 1
    If you're talking about this post see: meta.stackoverflow.com/questions/303812/…
    – apaul
    Commented Jan 4, 2016 at 19:16
  • @apaul34208 That's interesting. How does it know the difference?
    – tjt263
    Commented Jan 4, 2016 at 19:25
  • Not sure, just a heads up.
    – apaul
    Commented Jan 4, 2016 at 19:26
  • Screenshot of code != code. For one, you can't scroll with a screenshot of a scrollbar. Commented Jan 5, 2016 at 12:10
  • 1
    it should still be allowed.
    – tjt263
    Commented Jan 5, 2016 at 22:32

1 Answer 1

13

I assume you're seeing the big red error:

Your post appears to contain code that is not properly formatted as code. Please indent all code by 4 spaces using the code toolbar button or the CTRL+K keyboard shortcut.

as shown in this image:

error not properly formatted code

You get this error because your image markup is not separated by at least a blank line.

To overcome this I suggest to change your markup to this (just blank lines will do as well)

### User 1
[![SecondImage][2]][2]  
### User 2
[![ThirdImage][3]][3]  
### User 3
[![FourthImage][4]][4]

Which results in this:

User 1

SecondImage

User 2

ThirdImage

User 3

FourthImage

If you really don't want to have those empty lines there or provide text or a heading for your pictures you can fallback to using plain/raw html tags:

<img src="https://i.sstatic.net/6wNQa.jpg?s=64&g=1"><br />
<img src="https://i.sstatic.net/JUOzO.png?s=32&g=1"><br />
<img src="https://i.sstatic.net/qj33e.png?s=48&g=1"><br />

which gets rendered as:




You could even leave out the <br /> at the end to have images next to each other, something that isn't possible with only markdown.

2
  • It is possible to have the images next to each other by using Markdown. Unless you are getting a big red error as discussed above. But Superuser site is not bugged down by this problem at all and I have created a number of how-to's using medium sized images on a line as a way of creating a thumbnail gallery. It's odd that it's not working on Stackoverflow...
    – Samir
    Commented Feb 18, 2018 at 17:35
  • 1
    Two spaces at the end of a line is Markdown's <br/> Commented May 4, 2018 at 4:57

You must log in to answer this question.

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