Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

The markdown ![[image][1]][1] renders a broken tag:


share|improve this question
You're trying to make an image that has URL syntax as a tooltip? If you want to make an image that links, you want the ! inside like [![image][1]][2]. Still doesn't change that there is a broken HTML tag, though... – Grace Note Feb 4 '11 at 20:09
@Grace: I know. I discovered this by accident. – SLaks Feb 4 '11 at 20:10
Very related: – balpha Jan 12 '12 at 8:59
up vote 0 down vote accepted

I don't think what you're trying to do makes sense.. even a little.

Have a peek:

This is well into WTF? territory.

Instead I suggest something more sane:



share|improve this answer
I realize that this is invalid syntax. However, it's also a bug; it shouldn't emit a broken tag. – SLaks Feb 28 '11 at 3:48
I haven't analysed this for XSS holes yet. – SLaks Feb 28 '11 at 3:50
@SLaks: There shouldn't be one. You can produce the identical output by just writing image"> yourself instead of using this syntax to produce it. – balpha Feb 28 '11 at 7:33

While I agree with Jeff that this doesn't make much sense to try, it does behave somewhat nicely these days. It picks an absolutely valid interpretation of ![[image][1]][1], namely this:

![              // begin of the image
    [image      // the image's alt text is "[image"
]               // end of the alt text
[1]             // the image url (a reference, so it'll be,
                // which isn't an image and thus looks broken)
]               // a verbatim "]"
[1]             // a shortlink with the link text "1" to the url referenced by [1],
                // which is

It looks like this:


In particular, there's no broken tag.

share|improve this answer




I'm assuming you're trying to wrap an image in a link.

And there is an interesting difference between the preview and actual rendering:

enter image description here

share|improve this answer

You must log in to answer this question.

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