Browse Source

Octopress filters are now limited to html producing templating languages, Fixes #536

unreleased_contents
Brandon Mathis 13 years ago
parent
commit
8753a6b00c
  1. 4
      plugins/octopress_filters.rb

4
plugins/octopress_filters.rb

@ -24,13 +24,17 @@ module Jekyll
class ContentFilters < PostFilter class ContentFilters < PostFilter
include OctopressFilters include OctopressFilters
def pre_render(post) def pre_render(post)
if post.ext.match('html|textile|markdown|haml|slim|xml')
post.content = pre_filter(post.content) post.content = pre_filter(post.content)
end end
end
def post_render(post) def post_render(post)
if post.ext.match('html|textile|markdown|haml|slim|xml')
post.content = post_filter(post.content) post.content = post_filter(post.content)
end end
end end
end end
end
module OctopressLiquidFilters module OctopressLiquidFilters

Loading…
Cancel
Save