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

Test this in a new question/answer:



You will see that it fails because it will parse the * as italics. It should be ignored within links and images.

Trying it now:


share|improve this question
up vote 1 down vote accepted

This isn't technically a markdown problem. The HTML sanitizer is getting it.

It ends up like this:

<img src="" 
     alt="<em>google!</em>" />

The sanitizer kills the whole thing because of embedded tags. Which I agree with. Well, I wrote the code, so I'm biased, but you know what I mean.

share|improve this answer

Just escape the first star.




share|improve this answer
Didn't think of that! – perbert Aug 4 '09 at 16:10
Should this be added to the faq? – perbert Aug 4 '09 at 16:30

This is a problem with including images generated by one of the many LaTeX servers. For these, the alt text should be the exact LaTeX code used to produce the image: it makes it accessible to those who use screen readers to read the alt text, and it makes it possible to simply cut-and-paste the formula without having to go through and undo all the Markdown escaping. Given how often the underscore is used in LaTeX formulae, it would be extremely useful to have this fixed in the markdown implementation used.

This has been fixed in the PHP markdown port (even the version without all the extras) and, I believe, in the maruku ruby variant.

share|improve this answer

You must log in to answer this question.

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