[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Can I disable the underscore function in markdown?

cap

1/2/2006 2:55:00 PM

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?

1 Answer

Ross Bamford

1/2/2006 6:18:00 PM

0

On Mon, 02 Jan 2006 14:55:05 -0000, cap <capitain@gmail.com> 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 ;)

--
Ross Bamford - rosco@roscopeco.remove.co.uk