wiki-syntax: Use markup instead of textile.
This commit is contained in:
parent
f450070dbf
commit
dafbb077b6
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
module PagesHelper
|
module PagesHelper
|
||||||
|
|
||||||
def wikified_body(body)
|
def wikified_body(body)
|
||||||
r = RedCloth.new(body)
|
r = BlueCloth.new(body)
|
||||||
r.gsub!(/\[\[(.*?)(\|(.*?))?\]\]/) { wiki_link($1, $3) }
|
r.gsub!(/\[\[(.*?)(\|(.*?))?\]\]/) { wiki_link($1, $3) }
|
||||||
sanitize r.to_html
|
sanitize r.to_html
|
||||||
r.to_html
|
r.to_html
|
||||||
|
|
|
@ -68,7 +68,7 @@ Rails::Initializer.run do |config|
|
||||||
config.gem "fastercsv"
|
config.gem "fastercsv"
|
||||||
config.gem "prawn"
|
config.gem "prawn"
|
||||||
config.gem "haml", :version => '>=2.0.6'
|
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.
|
# 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.
|
# All files from config/locales/*.rb,yml are added automatically.
|
||||||
|
|
Loading…
Reference in a new issue