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