What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 128 Stack Exchange communities.

I'm having trouble adding two image links as images to an answer of mine. You can track my edits to see the attempt.

I can see images at edit preview but when I save it, the images are not displayed properly. Only the alt text is displayed.

What is wrong with these images?

share|improve this question
    
Works for me. I can see them. –  alex Dec 16 '09 at 10:19
    
@I hate haikus : because images are added by <img> tags. –  Canavar Dec 16 '09 at 10:23
add comment

2 Answers 2

up vote 2 down vote accepted

The problem lies with the fact that there are underscores in the full image path.

Writing them up in the old HTML code (<img>) fixes it nicely.

There are ever so slight differences between the rendered preview of Markdown using JavaScript and the baked HTML version. The underscore notoriously being that little trigger.

Compare the filename versions when writing them in:

Markdown - ![ ]

 42356759v1%5F350x350%5FFront%5FColor-AshGrey.jpg

HTML - <img />

 42356759v1_350x350_Front_Color-AshGrey.jpg

Using HTML will force it to keep, otherwise Markdown will convert the underscores (_) and play up.

share|improve this answer
    
No, underscores are no problem here. The only thing preventing from showing it for me was my Ad-Blocker. –  Ladybug Killer Dec 16 '09 at 10:17
2  
specifically, it is mixing of dash and underscore in the same URL. Rare, but Markdown REALLY doesn't like that. –  Jeff Atwood Dec 16 '09 at 10:20
    
@John Smithers : But I can see the images now, with the <img> tags. And I do not block images. This solution seems to work. Thanks. But really strange, What is the purpose of this featue ? –  Canavar Dec 16 '09 at 10:21
add comment

Disable Ad-Blocker!

share|improve this answer
    
Never!!!!!!!!!! –  alex Dec 16 '09 at 10:19
    
Haiku hater, your use of punctuation marks is disgusting. I would downvote you, if I could. –  Ladybug Killer Dec 16 '09 at 12:03
add comment

You must log in to answer this question.

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