public Method

BlueCloth.transform_italic_and_bold( str, rs )

Transform italic- and bold-encoded text in a copy of the specified str and return it.

Source Code

# File bluecloth.rb, line 873
def transform_italic_and_bold( str, rs )
        @log.debug " Transforming italic and bold"

        str.
                gsub( BoldRegexp, %{<strong>\\2</strong>} ).
                gsub( ItalicRegexp, %{<em>\\2</em>} )
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.