Add pref to choose prefered markdown lib

This commit is contained in:
Thomas Reynolds 2011-07-10 13:41:53 -07:00
parent 8fa78ce8c9
commit 22f3f0bc8c

View file

@ -1,12 +1,11 @@
module Middleman module Middleman::Renderers::Markdown
module Renderers
module Markdown
class << self class << self
def registered(app) def registered(app)
require "rdiscount" app.set :markdown, ::Tilt::RDiscountTemplate
app.after_feature_init do
::Tilt.prefer(app.settings.markdown)
end
end end
alias :included :registered alias :included :registered
end end
end
end
end end