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?

  • 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

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 - ![ ]


HTML - <img />


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

| 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

Disable Ad-Blocker!

| 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

You must log in to answer this question.

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