summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2015-08-12 15:29:00 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2015-08-12 15:29:15 -0400
commit013260e057068ecc1e5330156d95bb7fbe996575 (patch)
treed1a69797aba1ac62ff8297ff9cc2a5d74f219c83 /lib
parentcd579cb2ff45f3fc1513bb6ea74b53a2229276ae (diff)
downloadgitlab-ce-013260e057068ecc1e5330156d95bb7fbe996575.tar.gz
markup_helper: detect .mkd and .mkdn as markdown
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/markup_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/markup_helper.rb b/lib/gitlab/markup_helper.rb
index b1991e2e285..a5f767b134d 100644
--- a/lib/gitlab/markup_helper.rb
+++ b/lib/gitlab/markup_helper.rb
@@ -21,7 +21,7 @@ module Gitlab
#
# Returns boolean
def gitlab_markdown?(filename)
- filename.downcase.end_with?(*%w(.mdown .md .markdown))
+ filename.downcase.end_with?(*%w(.mdown .mkd .mkdn .md .markdown))
end
# Public: Determines if the given filename has AsciiDoc extension.