diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2015-08-12 15:29:00 -0400 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2015-08-12 15:29:15 -0400 |
commit | 013260e057068ecc1e5330156d95bb7fbe996575 (patch) | |
tree | d1a69797aba1ac62ff8297ff9cc2a5d74f219c83 /lib | |
parent | cd579cb2ff45f3fc1513bb6ea74b53a2229276ae (diff) | |
download | gitlab-ce-013260e057068ecc1e5330156d95bb7fbe996575.tar.gz |
markup_helper: detect .mkd and .mkdn as markdown
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/markup_helper.rb | 2 |
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. |