Sha256: 1390236ec1aa96f1b0680703d5dbe60bdd22b443ac4ed11ecbb855fba08909e5
Contents?: true
Size: 472 Bytes
Versions: 3
Compression:
Stored size: 472 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 rescue LoadError raise Webgen::LoadError.new('rdiscount', self.class.name, context.dest_node.alcn, 'rdiscount') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webgen-0.5.11 | lib/webgen/contentprocessor/rdiscount.rb |
webgen-0.5.10 | lib/webgen/contentprocessor/rdiscount.rb |
webgen-0.5.9 | lib/webgen/contentprocessor/rdiscount.rb |