1

How can I insert a linked image in a <pre/> tag? I've tried:

<pre>
![my picture][1]
</pre>
[1]: http://lh6.ggpht.com/pic.jpg

But this isn't working.

P.S. Please don't downvote the crap out of this question if it has been asked/answered before. I searched, couldn't find the answer, but if you know of the answer on another question, please just kindly point me that way. 谢谢!

1 Answer 1

3

The correct way would be to use the <img> HTML tag, because block elements like <pre> are supposed to block Markdown, according to the spec.


<pre>
<img src="https://i.stack.imgur.com/C6JgD.png" />
</pre>
3
  • Perfect, just what i needed!
    – Otaku
    Jul 14, 2010 at 21:22
  • 2
    Oh, I have to wait 6 minutes before accepting :( So that means you have to wait 6 minutes too :)
    – Otaku
    Jul 14, 2010 at 21:23
  • 1
    I just noticed that your smilies form an open and closing set of parentheses, @Otaku
    – Grace Note StaffMod
    Jul 14, 2010 at 21:47

You must log in to answer this question.