summaryrefslogtreecommitdiff
path: root/app/helpers/tree_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-09-20 13:00:18 +0300
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-09-20 13:00:18 +0300
commit0e524aaea1a98e5f1dff7f7370838116da5ba6f0 (patch)
treeac65138f13190f1a11c26c64a5fd798b1a31899e /app/helpers/tree_helper.rb
parented899a2f4b50b4370feeea94676502b42383c746 (diff)
downloadgitlab-ce-0e524aaea1a98e5f1dff7f7370838116da5ba6f0.tar.gz
Added workaround for github-markup issue with rendering markdown
Diffstat (limited to 'app/helpers/tree_helper.rb')
-rw-r--r--app/helpers/tree_helper.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/helpers/tree_helper.rb b/app/helpers/tree_helper.rb
index a5d5c742230..2b7265ca19e 100644
--- a/app/helpers/tree_helper.rb
+++ b/app/helpers/tree_helper.rb
@@ -32,7 +32,11 @@ module TreeHelper
#
# Returns boolean
def markup?(filename)
- filename.end_with?(*%w(.mdown .md .markdown .textile .rdoc .org .creole
- .mediawiki .rst .asciidoc .pod))
+ filename.end_with?(*%w(.textile .rdoc .org .creole
+ .mediawiki .rst .asciidoc .pod))
+ end
+
+ def gitlab_markdown?(filename)
+ filename.end_with?(*%w(.mdown .md .markdown))
end
end