Skip to content

Commit 6029981

Browse files
committed
Fix for issue imathis#622
The filters bundled with Octopress are not applied to files ending in `.md`, because the match in octopress_filters.rb does not match `.md`.
1 parent a96c0c6 commit 6029981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/octopress_filters.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ module Jekyll
2424
class ContentFilters < PostFilter
2525
include OctopressFilters
2626
def pre_render(post)
27-
if post.ext.match('html|textile|markdown|haml|slim|xml')
27+
if post.ext.match('html|textile|markdown|md|haml|slim|xml')
2828
post.content = pre_filter(post.content)
2929
end
3030
end
3131
def post_render(post)
32-
if post.ext.match('html|textile|markdown|haml|slim|xml')
32+
if post.ext.match('html|textile|markdown|md|haml|slim|xml')
3333
post.content = post_filter(post.content)
3434
end
3535
end

0 commit comments

Comments
 (0)