aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo Wever <ivo.wever@gmail.com>2012-08-09 23:34:41 +0300
committerIvo Wever <ivo.wever@gmail.com>2012-08-09 23:34:41 +0300
commit6029981e35eef840207bfcab423a8056e648ae3f (patch)
tree22353bb6186cc38083224e908a3ffa45c52c46bf
parenta96c0c6257fdbbbf6a11a9c93e523888fc897e00 (diff)
downloadmy_new_personal_website-6029981e35eef840207bfcab423a8056e648ae3f.tar.xz
my_new_personal_website-6029981e35eef840207bfcab423a8056e648ae3f.zip
Fix for issue #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`.
-rw-r--r--plugins/octopress_filters.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb
index 2ba93e9e..091f75aa 100644
--- a/plugins/octopress_filters.rb
+++ b/plugins/octopress_filters.rb
@@ -24,12 +24,12 @@ module Jekyll
class ContentFilters < PostFilter
include OctopressFilters
def pre_render(post)
- if post.ext.match('html|textile|markdown|haml|slim|xml')
+ if post.ext.match('html|textile|markdown|md|haml|slim|xml')
post.content = pre_filter(post.content)
end
end
def post_render(post)
- if post.ext.match('html|textile|markdown|haml|slim|xml')
+ if post.ext.match('html|textile|markdown|md|haml|slim|xml')
post.content = post_filter(post.content)
end
end