lib/markdown/wrapper.rb in markdown-0.1.0 vs lib/markdown/wrapper.rb in markdown-0.2.0.beta1

- old
+ new

@@ -24,18 +24,25 @@ @@config = nil - def self.lib( value = nil ) - if value.nil? - if @@config.nil? - @@config = Config.new - end - @@config.markdown_lib - else - ## todo: lets you select your library + def self.lib=( value ) + ## todo: lets you select your library + end + + def self.lib + if @@config.nil? + @@config = Config.new end + @@config.markdown_lib + end + + def self.extnames + if @@config.nil? + @@config = Config.new + end + @@config.markdown_extnames end def self.new( content, options={} ) ## todo: allow options to pass in \ No newline at end of file