diff --git a/lib/jekyll/converters/markdown.rb b/lib/jekyll/converters/markdown.rb index baeb9bf7..485cac82 100644 --- a/lib/jekyll/converters/markdown.rb +++ b/lib/jekyll/converters/markdown.rb @@ -26,7 +26,7 @@ module Jekyll end def matches(ext) - rgx = '(' + @config['markdown_ext'].gsub(',','|') +')' + rgx = '^\.(' + @config['markdown_ext'].gsub(',','|') +')$' ext =~ Regexp.new(rgx, Regexp::IGNORECASE) end