1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-11 11:43:08 +00:00

r18536@gaspard (orig r1800): jplang | 2008-09-11 19:19:26 +0200

Renames bundled RedCloth to RedCloth3 to avoid RedCloth 4 to be loaded instead (#1754).


git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1836 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Nicolas Chuche 2008-09-14 15:32:30 +00:00
parent ea30dbada1
commit 4508f1ca91
2 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@
#
# class RedCloth::Textile.new( str )
class RedCloth < String
class RedCloth3 < String
VERSION = '3.0.4'
DEFAULT_RULES = [:textile, :markdown]

View File

@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require 'redcloth'
require 'redcloth3'
require 'coderay'
module Redmine
@ -23,7 +23,7 @@ module Redmine
private
class TextileFormatter < RedCloth
class TextileFormatter < RedCloth3
# auto_link rule after textile rules so that it doesn't break !image_url! tags
RULES = [:textile, :block_markdown_rule, :inline_auto_link, :inline_auto_mailto, :inline_toc, :inline_macros]