Sha256: 740625745e5c9ede4e03f3f27de76e5959fcd74d8a0af506b57db7ad8a79bacf

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

# -*- encoding: utf-8 -*-

module Webgen::ContentProcessor

  # Processes content in Textile format using the +redcloth+ library.
  class RedCloth

    # Convert the content in +context+ to HTML.
    def call(context)
      require 'redcloth'
      context.content = ::RedCloth.new(context.content).to_html
      context
    end

  end

end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
gettalong-webgen-0.5.7.20090227 lib/webgen/contentprocessor/redcloth.rb
thewoolleyman-webgen-0.5.8.20090419 lib/webgen/contentprocessor/redcloth.rb
webgen-0.5.7 lib/webgen/contentprocessor/redcloth.rb