Browse files

Octopress filters are now limited to html producing templating langua…

…ges, Fixes #536
  • Loading branch information...
1 parent c5e2e52 commit 8753a6b00cad6c4c822df79967c6d5a8fb41b4dd @imathis committed May 21, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 plugins/octopress_filters.rb
View
8 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

0 comments on commit 8753a6b

Please sign in to comment.