Created
April 7, 2014 04:00
-
-
Save mather/10014647 to your computer and use it in GitHub Desktop.
Redmine2.5とredmine_redcarpet_formatterプラグインの衝突回避 ref: http://qiita.com/mather314/items/79e082bf4f9f9300c0a9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-gem "redcarpet" | |
+#gem "redcarpet" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Redmine | |
module WikiFormatting | |
- module Markdown | |
+ module RedcarpetMarkdown | |
class Formatter | |
# include ActionView::Helpers::TagHelper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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