Prefer textile over markup because markup doesn't support any tables. bähh.
This commit is contained in:
parent
7de45543c4
commit
d371839eba
3 changed files with 11 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue