Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move from referencing the BlueCloth constant directly, to referencing…

… Markdown.

This supports alternative implementations of markdown such as rpeg-markdown or rdiscount, and later releases of bluecloth.  There are some performance issues with earlier releases of bluecloth, and you should probably upgrade.  In the event that you can't you can place the following code into an initializer:

  Markdown = BlueCloth
  • Loading branch information...
commit a147becfb86b689ab25e92edcfbb4bcc04108099 1 parent b3ec7b2
@NZKoz NZKoz authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_view/helpers/text_helper.rb
6 actionpack/lib/action_view/helpers/text_helper.rb
@@ -271,8 +271,8 @@ def textilize_without_paragraph(text)
# Returns the text with all the Markdown codes turned into HTML tags.
- # <i>This method requires BlueCloth[]
- # to be available</i>.
+ # <i>This method requires BlueCloth[] or another
+ # Markdown library to be installed.</i>.
# ==== Examples
# markdown("We are using __Markdown__ now!")
@@ -288,7 +288,7 @@ def textilize_without_paragraph(text)
# markdown('![The ROR logo]( "Ruby on Rails")')
# # => '<p><img src="" alt="The ROR logo" title="Ruby on Rails" /></p>'
def markdown(text)
- text.blank? ? "" :
+ text.blank? ? "" :
# Returns +text+ transformed into HTML using simple formatting rules.
Please sign in to comment.
Something went wrong with that request. Please try again.