diff --git a/lib/jekyll/converters/markdown.rb b/lib/jekyll/converters/markdown.rb index 0dcc90a8..f0d1afb0 100644 --- a/lib/jekyll/converters/markdown.rb +++ b/lib/jekyll/converters/markdown.rb @@ -48,7 +48,7 @@ module Jekyll def extname_matches_regexp @extname_matches_regexp ||= Regexp.new( - '(' + @config['markdown_ext'].gsub(',','|') +')$', + '^\.(' + @config['markdown_ext'].gsub(',','|') +')$', Regexp::IGNORECASE ) end