Skip to content

Commit

Permalink
Fixed issue with RubyPants and the Octopress hooks filter
Browse files Browse the repository at this point in the history
  • Loading branch information
imathis committed Aug 29, 2014
1 parent c9e0078 commit 6bd719f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/octopress_filters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ def self.pre_filter(page)
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
Expand Down

0 comments on commit 6bd719f

Please sign in to comment.