Fixed issue with RubyPants and the Octopress hooks filter

This commit is contained in:
Brandon Mathis 2014-08-29 10:46:34 -05:00
parent c9e0078d65
commit 6bd719fd96
1 changed files with 3 additions and 2 deletions

View File

@ -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