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?

2 Answers 2

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.)

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

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

Don't cross the streams!

1

You must log in to answer this question.

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