From 6bd719fd96a0d03318ef25c1b3cd79abe0e4525b Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Fri, 29 Aug 2014 10:46:34 -0500 Subject: [PATCH] Fixed issue with RubyPants and the Octopress hooks filter --- plugins/octopress_filters.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb index 92e2fe5f8f6..9c7fa6c5877 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