Sha256: 1ac625896962f470d10f44b4860ab1a9fb5cc377d7ebb673cd9bb9416bde14d3

Contents?: true

Size: 239 Bytes

Versions: 2

Compression:

Stored size: 239 Bytes

Contents

module SmallCage
  module RedClothHelper
    require "redcloth"
    
    def render_textile(str)
      RedCloth.new(str).to_html
    end
    
    def render_markdown(str)
      RedCloth.new(str).to_html { :markdown }
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smallcage-0.0.9 project/redcloth/_smc/helpers/red_cloth_helper.rb
smallcage-0.1.0 project/redcloth/_smc/helpers/red_cloth_helper.rb