Possible Duplicate:
Markdown italics with underscores look good in preview but not in answer

Possible Duplicate:
Preview should match the posted view

Original q:

"In this answer, I added a cursive paragraph, which I've done more often. But now it doesn't work anymore. I tried preceding it with other text, played with * and _, but to no avail. Has there been a new submission of Mardown? I haven't seen this behavior before.

The code looks good in preview (but I know preview is using JS)."

While experimenting further, I found out that using an underscore in cursive text will ignore the asterisk.

An example_here we go wrong

EDIT: see history of referenced question and see this possible duplicate (sorry, I can't mark it myself for duplicates).

EDIT: workaround: escape the underscore with a backslash. Ugly, but you can use it until this bug is fixed.

  • cursive text, as in profanity laden or handwritten? – random Nov 17 '09 at 1:14
  • 1
    handwritten with a goose-quill! (sorry, not native, "cursief" is Dutch and means italics, I tend to mix them up). – Abel Nov 17 '09 at 1:37
  • @Abel: don't worry, spanish adn portuguese speakers understood you too :) here, have a cookie – perbert Nov 17 '09 at 2:03
  • 1
    lekker! crunchy! – Abel Nov 17 '09 at 12:40
  • I think you mean italic text. – Joel Coehoorn Dec 1 '09 at 1:04
  • deferred to dupe – Joel Coehoorn Dec 1 '09 at 1:10
  • Thanks, Joel, I found another dupe (was already in the original text) and a workaround (not mentioned in the other threads). – Abel Dec 1 '09 at 11:38

The problem is the _ in the word Page_Load(). Intra-word emphasis confuse the markdown renderer. It's a known issue:

  • 1
    Technically, when "inside" a markdown section, you should consider matching the pairs (starting with * must have a matching asterisk and cannot end with _, but can be interspersed with underscores). Using regexes in .NET, this is trivial to solve with balancing expressions. .NET is the only language supporting that, which makes it rather unknown, but it would easily fix many such errors currently troubling your users. – Abel Dec 1 '09 at 11:42

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