Skip to content

Instantly share code, notes, and snippets.

@mather
Created April 7, 2014 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mather/10014647 to your computer and use it in GitHub Desktop.
Save mather/10014647 to your computer and use it in GitHub Desktop.
Redmine2.5とredmine_redcarpet_formatterプラグインの衝突回避 ref: http://qiita.com/mather314/items/79e082bf4f9f9300c0a9
-gem "redcarpet"
+#gem "redcarpet"
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require 'redmine'
-require 'redmine/wiki_formatting/markdown/formatter'
-require 'redmine/wiki_formatting/markdown/helper'
+require 'redmine/wiki_formatting/redcarpet_markdown/formatter'
+require 'redmine/wiki_formatting/redcarpet_markdown/helper'
Redmine::Plugin.register :redmine_redcarpet_formatter do
description 'Markdown wiki formatting by Redcarpet for Redmine'
version '2.1'
- wiki_format_provider 'markdown', Redmine::WikiFormatting::Markdown::Formatter, Redmine::WikiFormatting::Markdown::Helper
+ wiki_format_provider 'redcarpet_markdown', Redmine::WikiFormatting::RedcarpetMarkdown::Formatter, Redmine::WikiFormatting::RedcarpetMarkdown::Helper
settings :default => {
'enable_hardwrap' => '1',
module Redmine
module WikiFormatting
- module Markdown
+ module RedcarpetMarkdown
class Formatter
# include ActionView::Helpers::TagHelper
module Redmine
module WikiFormatting
- module Markdown
+ module RedcarpetMarkdown
module Helper
unloadable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment