Skip to content

Commit

Permalink
Octopress filters are now limited to html producing templating langua…
Browse files Browse the repository at this point in the history
…ges, Fixes #536
  • Loading branch information
imathis committed May 21, 2012
1 parent c5e2e52 commit 8753a6b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/octopress_filters.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8753a6b

Please sign in to comment.