Prefer textile over markup because markup doesn't support any tables. bähh.

This commit is contained in:
Benjamin Meichsner 2009-05-20 13:03:58 +02:00
parent 7de45543c4
commit d371839eba
3 changed files with 11 additions and 9 deletions

View file

@ -1,7 +1,7 @@
module PagesHelper
def wikified_body(body)
r = BlueCloth.new(body)
r = RedCloth.new(body)
r.gsub!(/\[\[(.*?)(\|(.*?))?\]\]/) { wiki_link($1, $3) }
sanitize r.to_html
r.to_html