Octopress filters are now limited to html producing templating languages, Fixes #536
This commit is contained in:
parent
c5e2e524f8
commit
8753a6b00c
@ -24,12 +24,16 @@ 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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user