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