Sha256: bec088c4144b78ea7e2a517ebc7de9453ce1772bde0adb4c0f372309737ceb04

Contents?: true

Size: 368 Bytes

Versions: 4

Compression:

Stored size: 368 Bytes

Contents

module Stack
  module Filters
    module Convertors
      include Stack::Filters::Register
      
      def from_markdown(content)
        Maruku.new(content).to_html
      end
      
      def from_textile(content)
        RedCloth.new(content).to_html
      end
      
      def from_less(content)
        Less::Engine.new(content).to_css
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stack-0.0.9 lib/stack/filters/convertors.rb
stack-0.0.8 lib/stack/filters/convertors.rb
stack-0.0.7 lib/stack/filters/convertors.rb
stack-0.0.6 lib/stack/filters/convertors.rb