blog should use chosen markdown engine

This commit is contained in:
Thomas Reynolds 2011-07-13 17:56:50 -07:00
parent 7a71dfacd3
commit 6c2a6f3082

View file

@ -63,8 +63,8 @@ module Middleman
data["raw"].match(/(.{1,#{app.settings.blog_summary_length}}.*?)(\n|\Z)/m).to_s data["raw"].match(/(.{1,#{app.settings.blog_summary_length}}.*?)(\n|\Z)/m).to_s
end end
engine = RDiscount.new(sum) engine = app.settings.markdown_engine.new { sum }
data["summary"] = engine.to_html data["summary"] = engine.render
data data
end.sort { |a, b| b["date"] <=> a["date"] } end.sort { |a, b| b["date"] <=> a["date"] }