Sha256: 506a54380196faa763fe9511df9ab0fd3ac9cdaccfc17ee4d76ff3b7570d1764

Contents?: true

Size: 741 Bytes

Versions: 1

Compression:

Stored size: 741 Bytes

Contents

#                                                                          
# File 'maruku.rb' created on 15 feb 2008 at 22:58:04.                    
#
# See 'dokkit.rb' or +LICENSE+ for licence information.                      
#                                                                          
# (C) 2008 Andrea Fazzi <andrea.fazzi@alca.le.it> (and contributors). 
#                                                                          

require 'maruku'

module Dokkit
  module Filter
    
    class MarukuHTML
      
      def filter(text)
        Maruku.new(text).to_html
      end
      
    end

    class MarukuLatex
      
      def filter(text)
        Maruku.new(text).to_latex
      end
      
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dokkit-0.5.0 lib/dokkit/filters/maruku.rb