From 2118b550453f359c5325e819f239792066026e7a Mon Sep 17 00:00:00 2001 From: Chris Van Pelt Date: Sun, 23 Nov 2008 23:36:29 -0800 Subject: [PATCH] I ended up having to wrap the pre code in a div for RDiscount not to freak --- lib/jekyll/blocks.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/blocks.rb b/lib/jekyll/blocks.rb index 70ae6b02..6e1549a2 100644 --- a/lib/jekyll/blocks.rb +++ b/lib/jekyll/blocks.rb @@ -8,7 +8,14 @@ module Jekyll end def render(context) - "
#{escape(super)}
" + #The div is required because RDiscount blows ass + <<-HTML +
+
+    #{h(super.to_s).strip}
+  
+
+ HTML end end end