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

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
up vote 3 down vote accepted

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


... 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
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 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: – 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 .