Class: WikiEngine

Inherits:
Object
  • Object
show all
Defined in:
lib/markd/engines.rb

Instance Method Summary collapse

Constructor Details

#initializeWikiEngine

Returns a new instance of WikiEngine.



14
15
16
# File 'lib/markd/engines.rb', line 14

def initialize
  require 'wikitext'
end

Instance Method Details

#to_html(src) ⇒ Object



18
19
20
# File 'lib/markd/engines.rb', line 18

def to_html(src)
  Wikitext::Parser.new.parse(src)
end