public Method

BlueCloth.apply_block_transforms( str, rs )

Do block-level transforms on a copy of str using the specified render state rs and return the results.

Source Code

# File bluecloth.rb, line 240
def apply_block_transforms( str, rs )
        # Port: This was called '_runBlockGamut' in the original

        @log.debug "Applying block transforms to:\n  %p" % str
        text = transform_headers( str, rs )
        text = transform_hrules( text, rs )
        text = transform_lists( text, rs )
        text = transform_code_blocks( text, rs )
        text = transform_block_quotes( text, rs )
        text = transform_auto_links( text, rs )
        text = hide_html_blocks( text, rs )

        text = form_paragraphs( text, rs )

        @log.debug "Done with block transforms:\n  %p" % text
        return text
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.