For example, the bold tag isn't applied correctly. The following code should have the word 吃饭 in bold

我要**吃饭**啦

but instead it shows 吃饭 in italic with asterisks around the word. like this: 我要*吃饭*啦

If there is a space before and after the bold tag, then it works. The preview section when you enter the question also works correctly. This wouldn't be a problem for English which most of the SE sites are based in, but it would be a problem for East Asian language based sites.

share
add comment

1 Answer 1

up vote 4 down vote accepted

It's not a bug. The ** thing is Markdown, and it works like that I think... Anyway, when you don't have space, such as an expression, use HTML:

我要<strong>吃饭</strong>啦

gives

我要吃饭

I've been told that "b" and "i" are getting used less and less (deprecated), so use the ones Yi Jiang suggested:

<strong>AAA</strong> = bold
<em>AAA</em> = emphasis

I don't remember other tags you might need... In case, just ask me in a comment. :)

share
    
ah, cool. Didn't realize you can use html. –  StarCub Dec 14 '11 at 11:13
    
Ehehe :D there should be a quick reference guide in the FAQ, if I remember well... –  Alenanno Dec 14 '11 at 11:18
    
<strong> and <em> for bold and italics would probably be preferable, though there is no difference in the end result. Also note that comments and chat do not accept HTML, so this will remain a problem in these places. –  Yi Jiang 易江 Dec 14 '11 at 11:29
    
@YiJiang易江 I updated my answer, it seems you were right. :) –  Alenanno Dec 14 '11 at 14:48
    
@StarCub Answer updated! –  Alenanno Dec 14 '11 at 14:48
    
A list of HTML tags you can use is available here: meta.stackexchange.com/q/1777 –  Yi Jiang 易江 Dec 14 '11 at 14:51
2  
@Alenanno Since ** is not working for Chinese characters unless you manually enter spaces around it, should the script for the B button in the editor be replaced with <strong> tag instead? –  StarCub Dec 15 '11 at 3:49
1  
@StarCub I'm not sure I can answer this question, you should ask who takes care about such things. :D But I suppose they preferred using Markdown because it's much easier to use also for those who don't work with computers... I mean understanding ** is easier than knowing about tags, closing tags, etc... That's my supposition. –  Alenanno Dec 15 '11 at 10:29
    
hmmm, but I thought tags like <strong> are more human-friendly than ** and maybe easier to memorize? –  StarCub Dec 15 '11 at 10:40
    
Ahah the way you said it made me smile lol :D I'm not sure it's just a problem on here, so maybe someone already asked. Have you tried searching the meta Stackoverflow site? –  Alenanno Dec 15 '11 at 10:43
add comment

You must log in to answer this question.

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