Malt  Malt::Engine::BlueCloth

[Validate]
Generated with RDazzle Newfish 1.4.0

BlueCloth

Public Instance Methods

intermediate(params) click to toggle source

Convert Markdown text to intermediate object.

    # File lib/malt/engines/bluecloth.rb, line 23
23:     def intermediate(params)
24:       text = params[:text]
25:       ::BlueCloth.new(text)
26:     end
render(params) click to toggle source

Convert Markdown text to HTML text.

    # File lib/malt/engines/bluecloth.rb, line 11
11:     def render(params)
12:       text = params[:text]
13:       into = params[:to]
14:       case into
15:       when :html, nil
16:         intermediate(params).to_html
17:       else
18:         super(params)
19:       end
20:     end

Private Instance Methods

initialize_engine() click to toggle source

Load bluecloth library if not already loaded.

    # File lib/malt/engines/bluecloth.rb, line 31
31:     def initialize_engine
32:       return if defined? ::BlueCloth
33:       require_library 'bluecloth'
34:     end

Disabled; run with --debug to generate this.