The markdown ![[image][1]][1]
renders a broken tag:
3 Answers
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:
![https://i.sstatic.net/z1f8A.png][1]
[1]: https://i.sstatic.net/z1f8A.png
-
I realize that this is invalid syntax. However, it's also a bug; it shouldn't emit a broken tag.– SLaks ModCommented Feb 28, 2011 at 3:48
-
-
@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. Commented Feb 28, 2011 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 google.com,
// 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 google.com
It looks like this:
In particular, there's no broken tag.
Confirmed
![[image](http://www.vightel.com/rw_common/themes/blendit/images/header/image4.jpg)](http://www.vightel.com/)
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:
!
inside like[![image][1]][2]
. Still doesn't change that there is a broken HTML tag, though...