From e546eb3e9fbb194679e856043c52a704c4886c6a Mon Sep 17 00:00:00 2001 From: Brandon Bradley Date: Mon, 24 Nov 2014 20:08:31 -0600 Subject: [PATCH] force markdown regexp to match the full extension --- lib/jekyll/converters/markdown.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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