markdown optimization, few other changes

This commit is contained in:
jomo
2014-04-19 01:54:25 +02:00
parent 0264f239ba
commit 097f9b1ba4
12 changed files with 88 additions and 54 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
<div class="items">
<div class="item content post">
<h2 class="headline"><%= link_to truncate(p.title, length: 60, omission: " …"), p %></h2>
<%= Sanitize.clean(render_md(p.content), Sanitize::Config::RELAXED).html_safe %>
<%= render_md(p.content).html_safe %>
</div>
</div>
</div>