Sha256: a201d7ae53574533fbd140bb6c2952f8d11f420487afd4b6340a62be929f581e
Contents?: true
Size: 534 Bytes
Versions: 18
Compression:
Stored size: 534 Bytes
Contents
# -*- encoding: utf-8 -*- require 'webgen/content_processor' webgen_require 'redcloth', 'RedCloth' module Webgen class ContentProcessor # Processes content in Textile format using the +redcloth+ library. module RedCloth # Convert the content in +context+ to HTML. def self.call(context) doc = ::RedCloth.new(context.content) doc.hard_breaks = context.website.config['content_processor.redcloth.hard_breaks'] context.content = doc.to_html context end end end end
Version data entries
18 entries across 18 versions & 1 rubygems