From 6bd719fd96a0d03318ef25c1b3cd79abe0e4525b Mon Sep 17 00:00:00 2001
From: Brandon Mathis <brandon@imathis.com>
Date: Fri, 29 Aug 2014 10:46:34 -0500
Subject: Fixed issue with RubyPants and the Octopress hooks filter

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

(limited to 'plugins')

diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb
index 92e2fe5f..9c7fa6c5 100644
--- a/plugins/octopress_filters.rb
+++ b/plugins/octopress_filters.rb
@@ -17,9 +17,10 @@ module OctopressFilters
   end
   def self.post_filter(page)
     if page.ext.match('html|textile|markdown|md|haml|slim|xml')
-      input = TemplateWrapper::unwrap(page.content)
-      page.content = RubyPants.new(input).to_html
+      page.output = TemplateWrapper::unwrap(page.output)
     end
+
+    page.output = RubyPants.new(page.output).to_html
   end
 
   class PageFilters < Octopress::Hooks::Page
-- 
cgit v1.2.1