diff --git a/app/helpers/pages_helper.rb b/app/helpers/pages_helper.rb index b91f8bc1..a2e75b51 100644 --- a/app/helpers/pages_helper.rb +++ b/app/helpers/pages_helper.rb @@ -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 diff --git a/app/views/pages/_form.html.haml b/app/views/pages/_form.html.haml index b870d5ec..9e7d6d0a 100644 --- a/app/views/pages/_form.html.haml +++ b/app/views/pages/_form.html.haml @@ -8,14 +8,16 @@ %br/ :plain [[interner Link]]
- [externer Link](http://addresse.net)
- *kursiv*
- **Fett**
- * erster Listenpunkt
- * zweiter Listenpunkt
+ "externer Link":http://addresse.net
+ h1. Erste Überschrift
+ h2. Unterüberschrift
+ _kursiv_
+ *Fett*
+ # erster Listenpunkt
+ # zweiter Listenpunkt
+ ## Unterpunkt
%p - Übersicht über alle Formatierungen: - = link_to "Markdown Cheatsheet", "http://packetlife.net/static/cheatsheets/markdown.pdf", :target => '_blank' + = link_to "Tabellen, Styling, etc..", "http://hobix.com/textile/quick.html", :target => '_blank' - form_for @page do |f| = f.error_messages diff --git a/config/environment.rb b/config/environment.rb index aa2e3335..fcafaf8a 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -68,7 +68,7 @@ Rails::Initializer.run do |config| config.gem "fastercsv" config.gem "prawn" config.gem "haml", :version => '>=2.0.6' - config.gem 'BlueCloth', :lib => 'bluecloth' + config.gem 'RedCloth', :lib => 'redcloth' # 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.