public Method

BlueCloth.transform_hrules( str, rs )

Transform any Markdown-style horizontal rules in a copy of the specified str and return it.

Source Code

# File bluecloth.rb, line 454
def transform_hrules( str, rs )
        @log.debug " Transforming horizontal rules"
        str.gsub( /^( ?[\-\*_] ?){3,}$/, "\n<hr#{EmptyElementSuffix}\n" )
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.