wiki-syntax: Use markup instead of textile.

This commit is contained in:
Benjamin Meichsner 2009-05-07 17:59:23 +02:00
parent f450070dbf
commit dafbb077b6
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -68,7 +68,7 @@ Rails::Initializer.run do |config|
config.gem "fastercsv"
config.gem "prawn"
config.gem "haml", :version => '>=2.0.6'
config.gem 'RedCloth'
config.gem 'BlueCloth', :lib => 'bluecloth'
# The internationalization framework can be changed to have another default locale (standard is :en) or more load paths.
# All files from config/locales/*.rb,yml are added automatically.