Can I disable the underscore function in markdown?


#1

I just wrote some ariticles about ruby and rails using markdown’s
syntax.
I found that there are so many xxx_yyy methods descriped in my document
and markdown mess them up to this

xxx_yy … aaa_bbb (I want)=> xxx yy…aaa(italic) bbb

The only solution I found now is warp them all in . But doing this break my layout because of the <code></code> gen by

The underscore’s usage is convention in ruby so I want to disable it’s
function in markdown

Is there anybody can give me an advice?


#2

On Mon, 02 Jan 2006 14:55:05 -0000, cap removed_email_address@domain.invalid wrote:

The underscore’s usage is convention in ruby so I want to disable it’s
function in markdown

Is there anybody can give me an advice?

You should be able to escape it:

this is\_a? literal underscore

If you’re doing from a Ruby string don’t forget to escape the escape:

md = "this is\\_a? literal underscore"

It is a royal pain in the arse. Use Textile instead :wink: