<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,7 +15,7 @@ begin
     s.rubyforge_project = &quot;jekyll&quot;
     s.files.exclude 'test/dest'
     s.test_files.exclude 'test/dest'
-    s.add_dependency('RedCloth', '&gt;= 4.0.4')
+    s.add_dependency('RedCloth', '= 4.1.0')
     s.add_dependency('liquid', '&gt;= 1.9.0')
     s.add_dependency('classifier', '&gt;= 1.3.1')
     s.add_dependency('maruku', '&gt;= 0.5.9')</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -12,6 +12,7 @@ require 'yaml'
 
 # 3rd party
 require 'liquid'
+gem 'RedCloth', '= 4.1.0'
 require 'redcloth'
 
 # internal requires</diff>
      <filename>lib/jekyll.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,9 +30,9 @@ module Jekyll
     end
 
     def render_pygments(context, code)
-      if context[&quot;content_type&quot;] == :markdown
+      if context[&quot;content_type&quot;] == &quot;markdown&quot;
         return &quot;\n&quot; + Albino.new(code, @lang).to_s(@options) + &quot;\n&quot;
-      elsif context[&quot;content_type&quot;] == :textile
+      elsif context[&quot;content_type&quot;] == &quot;textile&quot;
         return &quot;&lt;notextile&gt;&quot; + Albino.new(code, @lang).to_s(@options) + &quot;&lt;/notextile&gt;&quot;
       else
         return Albino.new(code, @lang).to_s(@options)</diff>
      <filename>lib/jekyll/tags/highlight.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,15 +2,26 @@ require File.dirname(__FILE__) + '/helper'
 
 class TestTags &lt; Test::Unit::TestCase
 
-  def create_post(content, override = {})
+  def create_post(content, override = {}, markdown = true)
     stub(Jekyll).configuration do
       Jekyll::DEFAULTS.merge({'pygments' =&gt; true}).merge(override)
     end
     site = Site.new(Jekyll.configuration)
     info = { :filters =&gt; [Jekyll::Filters], :registers =&gt; { :site =&gt; site } }
 
-    @result = Liquid::Template.parse(content).render({}, info)
-    @result = site.markdown(@result)
+    if markdown
+      payload = {&quot;content_type&quot; =&gt; &quot;markdown&quot;}
+    else
+      payload = {&quot;content_type&quot; =&gt; &quot;textile&quot;}
+    end
+
+    @result = Liquid::Template.parse(content).render(payload, info)
+
+    if markdown
+      @result = site.markdown(@result)
+    else
+      @result = site.textile(@result)
+    end
   end
 
   def fill_post(code, override = {})
@@ -69,14 +80,24 @@ puts &quot;3..2..1..&quot;
 CONTENT
     end
 
+    context &quot;using Textile&quot; do
+      setup do
+        create_post(@content, {}, false)
+      end
+
+      should &quot;not textilize highlight block&quot; do
+        assert_no_match %r{3\.\.2\.\.1\.\.&amp;quot;&lt;/span&gt;&lt;br /&gt;}, @result
+      end
+    end
+
     context &quot;using Maruku&quot; do
       setup do
         create_post(@content)
       end
 
       should &quot;parse correctly&quot; do
-        assert_match %{&lt;em&gt;FIGHT!&lt;/em&gt;}, @result
-        assert_match %{&lt;em&gt;FINISH HIM&lt;/em&gt;}, @result
+        assert_match %r{&lt;em&gt;FIGHT!&lt;/em&gt;}, @result
+        assert_match %r{&lt;em&gt;FINISH HIM&lt;/em&gt;}, @result
       end
     end
 
@@ -86,8 +107,8 @@ CONTENT
       end
 
       should &quot;parse correctly&quot; do
-        assert_match %{&lt;em&gt;FIGHT!&lt;/em&gt;}, @result
-        assert_match %{&lt;em&gt;FINISH HIM&lt;/em&gt;}, @result
+        assert_match %r{&lt;em&gt;FIGHT!&lt;/em&gt;}, @result
+        assert_match %r{&lt;em&gt;FINISH HIM&lt;/em&gt;}, @result
       end
     end
   end</diff>
      <filename>test/test_tags.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4bcece18ae88a5f32906939418b0b7121263e73a</id>
    </parent>
  </parents>
  <author>
    <name>Nick Quaranto</name>
    <email>nick@quaran.to</email>
  </author>
  <url>http://github.com/JackDanger/jekyll/commit/26f9ad3d98ab6dd3f66aa84ff9e5fbda72a4d809</url>
  <id>26f9ad3d98ab6dd3f66aa84ff9e5fbda72a4d809</id>
  <committed-date>2009-04-29T06:07:29-07:00</committed-date>
  <authored-date>2009-04-29T05:35:27-07:00</authored-date>
  <message>Testing for RedCloth notextile issue and locking to 4.1.0, which parses the tag correctly</message>
  <tree>fe4c2a783252cd2af0db093636a47a1b91631c45</tree>
  <committer>
    <name>Nick Quaranto</name>
    <email>nick@quaran.to</email>
  </committer>
</commit>
