Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 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

Possible Duplicate:
Bolding words that include an underscore doesn't work
WMD unable to render markup inside words  

I was writing an answer on StackExchange and found that when you use asterisk around content with underscores, e.g. *I_Love_StackExchange* it simply doesn't make it italic.

I suppose this is because the underscores at the beginning and the end are also used to make content italic.

They look like this:

  • I_Love_StackExchange
  • _I_Love_StackExchange_

Does anyone know a way to italicize text that contains underscores?

share|improve this question

marked as duplicate by Arjan, animuson, yoozer8, jonsca, kiamlaluno Sep 15 '12 at 2:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
@Arjan - I'm not totally sure it's a dupe. It seems like the system could reasonably italicize whole words which contain markdown even if it doesn't support markdown within words – Brad Mace Sep 15 '12 at 1:15
    
You' right, @Brad, I don't know how I used that post for the duplicate! I was looking for Jeff's statement about the support for intra-word markdown, which he mentioned in Bolding words that include an underscore doesn't work, and somehow followed to that post. Still then, it's surely a dupe of the latter. (In which my comments to the accepted answer state exactly what you're stating.) – Arjan Sep 15 '12 at 6:45
up vote 11 down vote accepted

You're just confusing the Markdown parser. Try escaping them:

  • *I\_Love\_StackExchange*

    I_Love_StackExchange

  • _I\_Love\_StackExchange_

    I_Love_StackExchange

share|improve this answer
    
But, is this documented, and hence: future proof? – Arjan Sep 14 '12 at 17:28

I_Love_StackExchange Works.

You just have to escape the underscores with a backslash. That is:

*I\_Love\_StackExchange*
share|improve this answer

You can also use the standard HTML <i> tag:

<i>I_Love_StackExchange</i>

whichs renders as:

I_Love_StackExchange


Here's <em> for comparison:

<em>I_Love_StackExchange</em>

should look the same as <i> on SE:

I_Love_StackExchange

Note though, that they do not have to be the same

share|improve this answer
    
Thanks! or <em>, right? – Ilia Rostovtsev Sep 14 '12 at 17:41
1  
In this case yes, but they aren't always the same – Brad Mace Sep 14 '12 at 17:43
    
<i> does not render as italic on mobile. In fact, it does not show any special styling at all. <em> does though. – Arjan Sep 14 '12 at 19:27
    
@Arjan that sounds a bug you should report then, I don't believe <i> has been blacklisted or anything – Brad Mace Sep 14 '12 at 19:34

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