From 8753a6b00cad6c4c822df79967c6d5a8fb41b4dd Mon Sep 17 00:00:00 2001
From: Brandon Mathis <brandon@imathis.com>
Date: Mon, 21 May 2012 15:58:42 -0500
Subject: Octopress filters are now limited to html producing templating
 languages, Fixes #536

---
 plugins/octopress_filters.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'plugins')

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
-- 
cgit v1.2.1