Sha256: 19639bfb914a35864a079fc04821daa84d7afdb3366cef25344d6843dd20fa65

Contents?: true

Size: 323 Bytes

Versions: 8

Compression:

Stored size: 323 Bytes

Contents

module Webgen::ContentProcessor

  # Processes content in Markdown markup with the fast +rdiscount+ library.
  class RDiscount

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

  end

end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
gettalong-webgen-0.5.4.20080929 lib/webgen/contentprocessor/rdiscount.rb
gettalong-webgen-0.5.5.20081001 lib/webgen/contentprocessor/rdiscount.rb
gettalong-webgen-0.5.5.20081010 lib/webgen/contentprocessor/rdiscount.rb
gettalong-webgen-0.5.5.20081012 lib/webgen/contentprocessor/rdiscount.rb
gettalong-webgen-0.5.6.20081020 lib/webgen/contentprocessor/rdiscount.rb
webgen-0.5.4 lib/webgen/contentprocessor/rdiscount.rb
webgen-0.5.6 lib/webgen/contentprocessor/rdiscount.rb
webgen-0.5.5 lib/webgen/contentprocessor/rdiscount.rb