Ensure that WikiCloth does not show Edit links

This commit is contained in:
Patrick Gansterer 2017-10-20 12:07:56 +02:00
parent da1ebe915c
commit db46f189be
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ module PagesHelper
end
def wikified_body(body, title = nil)
FoodsoftWiki::WikiParser.new(data: body+"\n", params: {referer: title}).to_html.html_safe
FoodsoftWiki::WikiParser.new(data: body+"\n", params: {referer: title}).to_html(noedit: true).html_safe
rescue => e
# try the following with line breaks: === one === == two == = three =
content_tag :span, class: 'alert alert-error' do