What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 129 Stack Exchange communities.
***SomeText***

gives

SomeText

but

***Some_Text***

gives

*Some_Text*

It seems as though there's interference with the underscore character, since it can be used itself as markup for italics. Only it doesn't kick in at all, and it's not in first or last position.

share|improve this question
1  
It's partly because the underscore also does bold (__bold__) and italic (_italic_) –  ChrisF Oct 15 '11 at 11:51
2  
This is not a bug, it's a feature of nested incomplete format markup. –  DanBeale Oct 15 '11 at 14:01
    
I was trying to implement a simplified markup myself. My approach was to cut up text by space (think of split in java). Ever string that started with a markup sign was a markup start, and every string that ended with a markup sign was a markup end. –  MPelletier Oct 15 '11 at 18:32
    
tl;dr It's not a feature if it's not expected to work that way. It's a limitation. –  MPelletier Oct 15 '11 at 18:32

3 Answers 3

up vote 1 down vote accepted

This is will behave as expected after the next build.

share|improve this answer

Escape the underscore with a backslash.

***Some\_Text***

Some_Text

share|improve this answer
1  
Oh, that is a nice workaround! –  MPelletier Oct 15 '11 at 11:11

You could use the unambiguous HTML syntax:

<em><strong>Some_Text</strong></em>

Some_Text

Or even mix the two:

<em>**Some_Text**</em>

Some_Text

share|improve this answer
    
That's what I did for my immediate need, but I'm just raising a flag on the bug. Thanks for the other workaround though. –  MPelletier Oct 15 '11 at 11:35
1  
@MPelletier I'm not sure it's a bug per se. Could just be a syntactical ambiguity. As ChrisF pointed out, asterisks and underscores work very similarly in Markdown. –  lunboks Oct 15 '11 at 13:23

You must log in to answer this question.

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