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.

Reposted from this answer

The following markdown breaks:

![`<b>`Testing something](http://stackoverflow.com/content/img/so/logo.png)

It renders..

<b>Testing something" title="" />

For example:

<code><b></code>Testing something

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

It's weird because per the babemark test of this example:

http://is.gd/5CBft

This shouldn't be happening in markdown.pl 1.0.1 or markdown.pl 1.0.2b8. It's got to be something we're doing, somehow...

Edit: ah, I see. The sanitizer is rejecting this.

Markdown input

![`<b>`Testing something](http://stackoverflow.com/content/img/so/logo.png)

Markdown output

<p><img src="http://stackoverflow.com/content/img/so/logo.png"
        alt="<code>&lt;b&gt;</code>Testing something" /></p>

Thus, it's not a Markdown issue, per se.. I'm not sure we really want to allow html tags of any sort inside the alt tag. So I am closing this as [status-bydesign].

share|improve this answer
add comment

Given Jeff's explanation, it would make sense that the following Markdown would work:

![&lt;b&gt;Testing something](http://stackoverflow.com/content/img/so/logo.png)

...and it does. ;-)

<b>Testing something

share|improve this answer
add comment

You must log in to answer this question.

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