summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-12-23 13:05:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-12-23 13:05:10 +0000
commit471e01ca5059f892888f78e2278dd41d742a4b75 (patch)
treea07ecd3d8911cf0e6ce1220584fa2c10ed81b9ab /lib/redmine.rb
parent6311ade82708b63b83d30278a1af4c05af4aee6e (diff)
downloadredmine-471e01ca5059f892888f78e2278dd41d742a4b75.tar.gz
redmine-471e01ca5059f892888f78e2278dd41d742a4b75.zip
Adds experimental support for Markdown formatting with redcarpet (#15520).
git-svn-id: http://svn.redmine.org/redmine/trunk@12452 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r--lib/redmine.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index e62014c73..187689ea1 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -267,6 +267,8 @@ end
Redmine::WikiFormatting.map do |format|
format.register :textile, Redmine::WikiFormatting::Textile::Formatter, Redmine::WikiFormatting::Textile::Helper
+ format.register :markdown, Redmine::WikiFormatting::Markdown::Formatter, Redmine::WikiFormatting::Markdown::Helper,
+ :label => 'Markdown (experimental)'
end
ActionView::Template.register_template_handler :rsb, Redmine::Views::ApiTemplateHandler