<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,7 @@
 == 
   * Major Changes
     * Use Maruku (pure Ruby) for Markdown by default [github.com/mreid]
+    * Allow use of RDiscount with --rdiscount flag
   * Minor Enhancements
     * Don't load directory_watcher unless it's needed [github.com/pjhyett]
 </diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -80,7 +80,7 @@ The best way to install Jekyll is via RubyGems:
   $ sudo gem install mojombo-jekyll -s http://gems.github.com/
 
 Jekyll requires the gems `directory_watcher`, `liquid`, `open4`, 
-and `maruku` for markdown support. These are automatically
+and `maruku` (for markdown support). These are automatically
 installed by the gem install command.
 
 Maruku comes with optional support for LaTeX to PNG rendering via
@@ -123,6 +123,13 @@ during the conversion:
 
   $ jekyll --pygments
 
+By default, Jekyll uses &quot;Maruku&quot;:http://maruku.rubyforge.org (pure Ruby) for
+Markdown support. If you'd like to use RDiscount (faster, but requires
+compilation), you must install it (gem install rdiscount) and then you can
+have it used instead:
+
+  $ jekyll --rdiscount
+
 h2. Data
 
 Jekyll traverses your site looking for files to process. Any files with YAML</diff>
      <filename>README.textile</filename>
    </modified>
    <modified>
      <diff>@@ -32,6 +32,16 @@ opts = OptionParser.new do |opts|
   opts.on(&quot;--pygments&quot;, &quot;Use pygments to highlight code&quot;) do
     Jekyll.pygments = true
   end
+  
+  opts.on(&quot;--rdiscount&quot;, &quot;Use rdiscount gem for Markdown&quot;) do
+    begin
+      require 'rdiscount'
+      Jekyll.markdown_proc = Proc.new { |x| RDiscount.new(x).to_html }
+      puts 'Using rdiscount for Markdown'
+    rescue LoadError
+      puts 'You must have the rdiscount gem installed first'
+    end
+  end
 end
 
 opts.parse!</diff>
      <filename>bin/jekyll</filename>
    </modified>
    <modified>
      <diff>@@ -44,11 +44,12 @@ module Jekyll
   VERSION = '0.2.0'
   
   class &lt;&lt; self
-    attr_accessor :source, :dest, :lsi, :pygments
+    attr_accessor :source, :dest, :lsi, :pygments, :markdown_proc
   end
   
   Jekyll.lsi = false
   Jekyll.pygments = false
+  Jekyll.markdown_proc = Proc.new { |x| Maruku.new(x).to_html }
   
   def self.process(source, dest)
     require 'classifier' if Jekyll.lsi</diff>
      <filename>lib/jekyll.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,7 +30,7 @@ module Jekyll
         self.content = RedCloth.new(self.content).to_html
       when &quot;.markdown&quot;:
         self.ext = &quot;.html&quot;
-        self.content = Maruku.new(self.content).to_html
+        self.content = Jekyll.markdown_proc.call(self.content)
       end
     end
     </diff>
      <filename>lib/jekyll/convertible.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b0004e803a35652c2a7e84c290040c8d689faa16</id>
    </parent>
  </parents>
  <author>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </author>
  <url>http://github.com/metajack/jekyll/commit/59080271ed5100ec9b72ce69d72c38bab0ced321</url>
  <id>59080271ed5100ec9b72ce69d72c38bab0ced321</id>
  <committed-date>2008-12-15T12:27:57-08:00</committed-date>
  <authored-date>2008-12-15T12:16:35-08:00</authored-date>
  <message>allow use of rdiscount if --rdiscount is set and gem is installed</message>
  <tree>9e7e4560afc577b3b21b77f1f52fc6094ae34878</tree>
  <committer>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </committer>
</commit>
