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