Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2015-08-12 22:29:00 +0300
committerBen Boeckel <ben.boeckel@kitware.com>2015-08-12 22:29:15 +0300
commit013260e057068ecc1e5330156d95bb7fbe996575 (patch)
treed1a69797aba1ac62ff8297ff9cc2a5d74f219c83 /lib/gitlab/markup_helper.rb
parentcd579cb2ff45f3fc1513bb6ea74b53a2229276ae (diff)
markup_helper: detect .mkd and .mkdn as markdown
Diffstat (limited to 'lib/gitlab/markup_helper.rb')
-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.