blog should use chosen markdown engine
This commit is contained in:
parent
7a71dfacd3
commit
6c2a6f3082
|
@ -63,8 +63,8 @@ module Middleman
|
|||
data["raw"].match(/(.{1,#{app.settings.blog_summary_length}}.*?)(\n|\Z)/m).to_s
|
||||
end
|
||||
|
||||
engine = RDiscount.new(sum)
|
||||
data["summary"] = engine.to_html
|
||||
engine = app.settings.markdown_engine.new { sum }
|
||||
data["summary"] = engine.render
|
||||
data
|
||||
end.sort { |a, b| b["date"] <=> a["date"] }
|
||||
|
||||
|
|
Loading…
Reference in a new issue