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.

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, Jim, 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
add comment

3 Answers 3

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
add comment

I_Love_StackExchange Works.

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

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

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
add comment

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