lib/patricia/patricia.rb in patricia-0.0.1 vs lib/patricia/patricia.rb in patricia-0.1.1

- old
+ new

@@ -1,10 +1,11 @@ require 'fileutils' require 'kramdown' require 'org-ruby' require 'redcloth' require 'pandoc-ruby' +require 'github/markup' module Patricia class Converter @@ -49,13 +50,16 @@ def self.pandoc_rst(markup) PandocRuby.new(markup, :from => :rst, :to => :html).convert end def self.to_html(path) - markup = File.open(path, 'r').read + markup = File.read(path) self.send @@converters[File.extname(path).sub(/^\./, '')], markup end + def self.gfm_to_html(path) + GitHub::Markup.render(path) + end end class Wiki attr_reader :dirs, :output_dirs, :asset_files, :input_dir, :header,