Permalink
Browse files

Fix rendering Components. Do not markdown twice

  • Loading branch information...
1 parent cbbfdb3 commit 9b97b794071858c710f1514c3666d65e7b68d423 @iboard committed Dec 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/presenters/page_component_presenter.rb
@@ -13,11 +13,11 @@ def render_page_component
content_tag :div, class: 'page-component', id: "page-component-"+ page_component.id.to_s do
rc = if page_component.page_template
content_tag :div, class: page_component.page_template.css_class do
- interpreter.render( page_component.page_template.html_template ) + _edit
+ interpreter.render( page_component.page_template.html_template,false ) + _edit
end
else
content_tag( :h1, page_component.t(I18n.locale,:title) ) +
- interpreter.render( page_component.t(I18n.locale,:body))+
+ interpreter.render( page_component.t(I18n.locale,:body, false))+
_edit
end
end

0 comments on commit 9b97b79

Please sign in to comment.