middleman 2.0.0.rc2 → 2.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module Middleman::CoreExtensions::FrontMatter
|
|
8
8
|
|
9
9
|
::Tilt::register RDiscountTemplate, 'markdown', 'mkd', 'md'
|
10
10
|
::Tilt::register RedcarpetTemplate, 'markdown', 'mkd', 'md'
|
11
|
-
|
11
|
+
app.set :markdown_engine, RDiscountTemplate
|
12
12
|
|
13
13
|
::Tilt::register RedClothTemplate, 'textile'
|
14
14
|
::Tilt.prefer(RedClothTemplate)
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Middleman::Renderers::Markdown
|
2
2
|
class << self
|
3
3
|
def registered(app)
|
4
|
-
app.set :
|
4
|
+
app.set :markdown_engine, ::Tilt::RDiscountTemplate
|
5
5
|
app.after_feature_init do
|
6
|
-
::Tilt.prefer(app.settings.
|
6
|
+
::Tilt.prefer(app.settings.markdown_engine)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
alias :included :registered
|
data/lib/middleman/version.rb
CHANGED