aboutsummaryrefslogtreecommitdiff
path: root/plugins/render_partial.rb
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-09-07 18:32:57 -0500
committerBrandon Mathis <brandon@imathis.com>2011-09-07 18:34:21 -0500
commit3d2d1a8be49f3d2db16618014d38d5b93ef0c58f (patch)
tree7fd6c0d6ccdbdd0504a8ac494d39f3f91afc048a /plugins/render_partial.rb
parentb25db54f938899b99d360a91e228d8b43838804c (diff)
downloadmy_new_personal_website-3d2d1a8be49f3d2db16618014d38d5b93ef0c58f.tar.xz
my_new_personal_website-3d2d1a8be49f3d2db16618014d38d5b93ef0c58f.zip
1. Vastly improved backtick code blocks and added support for Textile
2. Refactored Octopress filters into Liquid filters and pre/post render filters (using post_filters plugin) 3. Added methods to raw plugin to prevent Markdown and Textile from parsing blocks 4. Updated render partial to invoke the pre_render method of post_filters 5. Moved Rubypants filter out of default.html into Octopress post_render filters 6. Added raw's safe_wrapper method to codeblock and include_code filters
Diffstat (limited to 'plugins/render_partial.rb')
-rw-r--r--plugins/render_partial.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/render_partial.rb b/plugins/render_partial.rb
index 9f665644..b6ebfe8b 100644
--- a/plugins/render_partial.rb
+++ b/plugins/render_partial.rb
@@ -22,10 +22,12 @@
#
require 'pathname'
+require './plugins/octopress_filters'
module Jekyll
class RenderPartialTag < Liquid::Tag
+ include OctopressFilters
def initialize(tag_name, markup, tokens)
@file = nil
@raw = false
@@ -50,6 +52,7 @@ module Jekyll
if contents =~ /\A-{3}.+[^\A]-{3}\n(.+)/m
contents = $1.lstrip
end
+ contents = pre_filter(contents)
if @raw
contents
else