Sha256: dd9c461803d72bbdefcb6d4d63a873c94f7b808015a934597acaf2bea3e0a3aa
Contents?: true
Size: 712 Bytes
Versions: 11
Compression:
Stored size: 712 Bytes
Contents
# encoding: utf-8 module Slideshow module MarkdownEngines ## note: for now keep it simple use just kramdown def markdown_to_html( content ) ## note: set to gfm (github-flavored markdown) by default ## see http://kramdown.gettalong.org/parser/gfm.html kramdown_config = { 'input' => 'GFM', 'hard_wrap' => false } puts " Converting markdown-text (#{content.length} bytes) to HTML using kramdown library with #{kramdown_config.inspect}..." Kramdown::Document.new( content, kramdown_config ).to_html end end # module MarkdownEngines end # module Slideshow class Slideshow::Gen include Slideshow::MarkdownEngines end
Version data entries
11 entries across 11 versions & 1 rubygems