Sha256: ae76bdb921a69b21b83d26a4119cfd74a273019f0a13fec2d6569e32c1e882b2
Contents?: true
Size: 422 Bytes
Versions: 18
Compression:
Stored size: 422 Bytes
Contents
# -*- encoding: utf-8 -*- require 'webgen/content_processor' webgen_require 'rdiscount' module Webgen class ContentProcessor # Processes content in Markdown markup with the fast +rdiscount+ library. module RDiscount # Convert the content in +context+ to HTML. def self.call(context) context.content = ::RDiscount.new(context.content).to_html context end end end end
Version data entries
18 entries across 18 versions & 1 rubygems