Add pref to choose prefered markdown lib
This commit is contained in:
parent
8fa78ce8c9
commit
22f3f0bc8c
|
@ -1,12 +1,11 @@
|
||||||
module Middleman
|
module Middleman::Renderers::Markdown
|
||||||
module Renderers
|
class << self
|
||||||
module Markdown
|
def registered(app)
|
||||||
class << self
|
app.set :markdown, ::Tilt::RDiscountTemplate
|
||||||
def registered(app)
|
app.after_feature_init do
|
||||||
require "rdiscount"
|
::Tilt.prefer(app.settings.markdown)
|
||||||
end
|
|
||||||
alias :included :registered
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
alias :included :registered
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in a new issue