Sha256: bdc695a4b46554b7eeb3b9c12f00fea1a054c76dda148323c9fc32fb789ae004
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 Bytes
Contents
module Slideshow module MarkdownEngines def pandoc_ruby_to_html( content ) content = PandocRuby.new( content, :from => :markdown, :to => :html ).convert content.gsub( /class="incremental"/, 'class="step"' ) end def rdiscount_to_html( content ) RDiscount.new( content ).to_html end def rpeg_markdown_to_html( content ) PEGMarkdown.new( content ).to_html end def maruku_to_html( content ) Maruku.new( content, {:on_error => :raise} ).to_html end def bluecloth_to_html( content ) BlueCloth.new( content ).to_html end def kramdown_to_html( content ) Kramdown::Document.new( content ).to_html end end # module MarkdownEngines end # module Slideshow class Slideshow::Gen include Slideshow::MarkdownEngines end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slideshow-0.9.3 | lib/slideshow/markdown.rb |