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

I was just answering a question on SOF where I typed App_Code blah blah blah App_Code into the answer. Markdown interpreted the two underscores as beginning and ending some italicized text, and thus in the preview, it appeared like this: AppCode blah blah blah AppCode.

Is there some way to avoid this? Maybe a way to escape special markdown characters in cases like this? (I had to resort to using the _ html entity to get my question to appear properly, but that is kind of annoying)

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Note that the real-time preview will incorrectly italicize, but the actual post will not.

Example:

... I typed App_Code blah blah blah App_Code ...

edit: the real-time preview was updated to correctly show how we block intra-word emphasis.

share|improve this answer
5  
Having the preview and the post differ is a source of numerous confused complaints. What are the chances of getting them to match consistently? –  dlamblin Nov 12 '09 at 19:09
    
@dlamblin: this has become a pet peeve of mine (since it's a serious problem on my Stack Exchange site), so I've been tweaking wmd.js to make the preview match the post (see meta.stackexchange.com/questions/1227#30869). My current version handles italics and bold almost exactly like the server side implementation, but it's not quite perfect, and it's non-trivial to figure out what rules are being applied on the server. If you want to help figure out the rules, you can experiment on this SE site without bothering anybody: faketestsite.stackexchange.com/questions/4 –  Anton Geraschenko Nov 26 '09 at 2:53

You must log in to answer this question.

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