Class Texy::SourceBlockElement
In: lib/texy/modules/block.rb
Parent: BlockElement

Methods

Public Class methods

[Source]

# File lib/texy/modules/block.rb, line 209
        def initialize(texy)
            super
            self.tag = 'pre'
        end

Protected Instance methods

[Source]

# File lib/texy/modules/block.rb, line 215
            def generate_content
                html = super
                html = texy.formatter_module.post_process(html) if texy.formatter_module

                el = CodeBlockElement.new(texy)
                el.lang = 'html'
                el.type = 'code'
                el.set_content(html, false)

                if texy.block_module.code_handler
                    texy.block_module.code_handler.call(el)
                end

                el.safe_content
            end

[Validate]