Sha256: f5f4ba2db75d43f3c7d284534d7aac63cbab43a0d9d0bf57f6f31ef28b4de3a6

Contents?: true

Size: 350 Bytes

Versions: 7

Compression:

Stored size: 350 Bytes

Contents

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

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

7 entries across 7 versions & 3 rubygems

Version Path
gettalong-webgen-0.5.7.20090227 lib/webgen/contentprocessor/rdiscount.rb
gettalong-webgen-0.5.8.20090507 lib/webgen/contentprocessor/rdiscount.rb
gettalong-webgen-0.5.9.20090620 lib/webgen/contentprocessor/rdiscount.rb
gettalong-webgen-0.5.9.20090626 lib/webgen/contentprocessor/rdiscount.rb
thewoolleyman-webgen-0.5.8.20090419 lib/webgen/contentprocessor/rdiscount.rb
webgen-0.5.7 lib/webgen/contentprocessor/rdiscount.rb
webgen-0.5.8 lib/webgen/contentprocessor/rdiscount.rb