Sha256: ba4112dd2b74fcf529a34dd29af1c400715cb4ed7f0ed023a25ddcbf6422378b
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
# -*- encoding: utf-8 -*- require 'webgen/content_processor' webgen_require 'rdoc/markup/to_html', 'rdoc' module Webgen class ContentProcessor # Converts content in RDoc markup (the native Ruby documentation format) to HTML. Needs the newer # RDoc implementation (version >= 2.4.x). module RDoc # Convert the content in RDoc markup to HTML. def self.call(context) context.content = ::RDoc::Markup::ToHtml.new.convert(context.content) context end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webgen-1.0.0.beta2 | lib/webgen/content_processor/r_doc.rb |
webgen-1.0.0.beta1 | lib/webgen/content_processor/rdoc.rb |