Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #2539 (new enhancement)

Opened 3 years ago

Last modified 1 year ago

[PATCH] textilize options

Reported by: anonymous Assigned to: David
Priority: normal Milestone: 2.x
Component: ActionPack Version: edge
Severity: normal Keywords:
Cc:

Description

Allow textilize to accept options to pass along to the RedCloth.new call - so that you can (ie) use the :filter_html RedCloth option via the textilize method

Attachments

allow_redcloth_restrictions.diff (2.8 kB) - added by mike.douglas@gmail.com on 11/15/05 05:11:14.
patch
allow_redcloth_restrictions_rev2.diff (2.3 kB) - added by josh on 02/22/07 21:32:33.
Updated patch for r6209.

Change History

11/15/05 05:10:42 changed by mike.douglas@gmail.com

Here is a patch.

When textilize is called with a Hash, the :text key is used for text and the :restrictions key is passed to RedCloth.new.

It should be backwards compatible (textilize calls with a String argument will still be treated the same). Tests for textilize are also included.

11/15/05 05:11:14 changed by mike.douglas@gmail.com

  • attachment allow_redcloth_restrictions.diff added.

patch

06/03/06 15:08:04 changed by brad@madriska.com

  • summary changed from textilize options to [PATCH] textilize options.

02/22/07 21:32:33 changed by josh

  • attachment allow_redcloth_restrictions_rev2.diff added.

Updated patch for r6209.

02/22/07 21:33:22 changed by josh

  • keywords set to verified tiny.
  • version changed from 0.13.1 to edge.

Posted updated patch to fit cleanly into r6209.

06/04/07 04:27:34 changed by josh

  • keywords changed from verified tiny to verified.
  • milestone set to 1.x.

Closing old patch. Please reopen if your still like the idea.

07/20/07 02:24:45 changed by nzkoz

Removing the verified keyword, to get it back follow the instructions of http://wiki.rubyonrails.org/rails/pages/PatchRequirements

07/20/07 02:24:58 changed by nzkoz

  • keywords deleted.