diff options
author | Brandon Mathis <brandon@imathis.com> | 2012-05-21 15:58:42 -0500 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2012-05-21 16:06:52 -0500 |
commit | 8753a6b00cad6c4c822df79967c6d5a8fb41b4dd (patch) | |
tree | 37c1f2cc54bf8fb408fd4f87d2d1b4c33c9c2b81 | |
parent | c5e2e524f81bec60c9c7d44662d8394abf6a0862 (diff) | |
download | my_new_personal_website-8753a6b00cad6c4c822df79967c6d5a8fb41b4dd.tar.xz my_new_personal_website-8753a6b00cad6c4c822df79967c6d5a8fb41b4dd.zip |
Octopress filters are now limited to html producing templating languages, Fixes #536
-rw-r--r-- | plugins/octopress_filters.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb index a5bb235c..2ba93e9e 100644 --- a/plugins/octopress_filters.rb +++ b/plugins/octopress_filters.rb @@ -24,10 +24,14 @@ module Jekyll class ContentFilters < PostFilter include OctopressFilters def pre_render(post) - post.content = pre_filter(post.content) + if post.ext.match('html|textile|markdown|haml|slim|xml') + post.content = pre_filter(post.content) + end end def post_render(post) - post.content = post_filter(post.content) + if post.ext.match('html|textile|markdown|haml|slim|xml') + post.content = post_filter(post.content) + end end end end |