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:
Markdown italics with underscores look good in preview but not in answer

I just ran into an interesting markdown bug with previews that I thought I'd throw out there in case it's new.

The post in question is here. The text looks fine in the "normal" view, but in the preview pane (while editing) it looks like this:

There's Test::More's eq*deeply() function, which will also display exactly where the structures differ, or Test::Deep's eq*deeply(), which doesn't require a test harness (and just returns true or false).

Somehow the underscore characters are being interpreted as start italics/end italics.

EDIT: I can't seem to reproduce the appearance here. In the preview pane here on meta it looks like it does in the original post, but after posting, it comes out wrong (the asterisks are visible). Clearly it's not possible to demonstrate a bug in markdown using markdown :)

share|improve this question

marked as duplicate by Joel Coehoorn Oct 22 '09 at 20:22

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.

    
deferred to meta.stackexchange.com/questions/1227/… , but the link isn't exactly a dupe. I'll close too if someone gives a better link. –  Joel Coehoorn Oct 22 '09 at 20:18
    
Found another dupe here: meta.stackexchange.com/questions/4202/… –  Ether Oct 22 '09 at 20:20

1 Answer 1

up vote 1 down vote accepted

Known bug. Intra-word emphasis are part of the markdown spec, but they're disabled here as they cause problems in code snippets.

The bug is that the preview doesn't handle this departure properly, even though it will be correct (for the SO-modified version of "correct") when it's posted. But that's old news:
http://meta.stackexchange.com/questions/1227/preview-should-match-the-posted-view

share|improve this answer

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