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
|
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"] }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue