8

This answer of mine has some italicized words containing underscores in the first line. These look good in the preview, but in the answer they appear non-italicized with surrounding asterisks.

Is this a known bug, and is there a workaround?

12

Workaround - write the italics tag yourself. For example:

Use <i>attr_accessor</i> to add attributes

produces:

Use attr_accessor to add attributes

Ugly, but it works.

As for whether it's a known bug - it's known now ;) (Things like this are fundamentally tricky for markdown, unfortunately.)

  • Thanks, that works indeed. – Lars Haugseth Jul 10 '09 at 10:25
  • 6
    Alternatively, escape the underscore: *this\_works as well*: this_works as well – Abel Nov 17 '09 at 0:39
  • Ugly? UGLY?!?!?! HTML is beautiful. – bjb568 Apr 6 '14 at 23:38
7

The server-side markdown parser does not like mixing _ and *.

Don't cross the streams!

  • In that case, what happens when I do this: _*_** – Hilarious Comedy Pesto Jul 10 '09 at 15:00
  • 6
    Try to imagine all life as you know it stopping instantaneously and every molecule in your body exploding at the speed of light. – SingleNegationElimination Jul 20 '09 at 5:03

You must log in to answer this question.

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