Skip to content

Commit 8753a6b

Browse files
committed
Octopress filters are now limited to html producing templating languages, Fixes #536
1 parent c5e2e52 commit 8753a6b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plugins/octopress_filters.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ module Jekyll
2424
class ContentFilters < PostFilter
2525
include OctopressFilters
2626
def pre_render(post)
27-
post.content = pre_filter(post.content)
27+
if post.ext.match('html|textile|markdown|haml|slim|xml')
28+
post.content = pre_filter(post.content)
29+
end
2830
end
2931
def post_render(post)
30-
post.content = post_filter(post.content)
32+
if post.ext.match('html|textile|markdown|haml|slim|xml')
33+
post.content = post_filter(post.content)
34+
end
3135
end
3236
end
3337
end

0 commit comments

Comments
 (0)