public Method

BlueCloth.escape_md( str )

Escape any markdown characters in a copy of the given str and return it.

Source Code

# File bluecloth.rb, line 1042
def escape_md( str )
        str.
                gsub( /\*/, EscapeTable['*'][:md5] ).
                gsub( /_/,  EscapeTable['_'][:md5] )
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.