| ... | ... |
@@ -24,10 +24,14 @@ module Jekyll |
| 24 | 24 |
class ContentFilters < PostFilter |
| 25 | 25 |
include OctopressFilters |
| 26 | 26 |
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 |
|
| 28 | 30 |
end |
| 29 | 31 |
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 |
|
| 31 | 35 |
end |
| 32 | 36 |
end |
| 33 | 37 |
end |