<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>bin/rpeg-markdown</filename>
    </added>
    <added>
      <filename>ext/markdown.c</filename>
    </added>
    <added>
      <filename>ext/markdown_buffer.c</filename>
    </added>
    <added>
      <filename>ext/markdown_buffer.h</filename>
    </added>
    <added>
      <filename>test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,6 @@ require 'rake/clean'
 
 DLEXT = Config::CONFIG['DLEXT']
 
-
 desc 'Gather required peg-markdown sources into extension directory'
 task :gather do |t|
   sh 'cd peg-markdown &amp;&amp; make markdown_parser.c'
@@ -29,3 +28,13 @@ end
 
 desc 'Build the peg-markdown extension'
 task :build =&gt; &quot;lib/markdown.#{DLEXT}&quot;
+
+task 'test:unit' =&gt; [ :build ] do |t|
+  ruby 'test.rb'
+end
+
+task 'test:conformance' =&gt; [ :build ] do |t|
+  chdir('peg-markdown/MarkdownTest_1.0.3') do
+    sh &quot;./MarkdownTest.pl --script=../../bin/rpeg-markdown --tidy&quot;
+  end
+end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,6 @@
 require 'mkmf'
+
+$CFLAGS = &quot;-Wall&quot;
+
 dir_config('markdown')
 create_makefile('markdown')</diff>
      <filename>ext/extconf.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,6 +22,12 @@
 #include &lt;assert.h&gt;
 #include &quot;markdown_peg.h&quot;
 
+/***********************************************************************/
+#include &quot;markdown_buffer.h&quot;
+#define printf  rb_markdown_buffer_printf
+#define putchar rb_markdown_buffer_putchar
+/***********************************************************************/
+
 /* TODO remove */
 static extensions = 0;
 </diff>
      <filename>ext/markdown_output.c</filename>
    </modified>
    <modified>
      <diff>@@ -0,0 +1,21 @@
+require 'markdown.so'
+
+class Markdown
+
+  # Original Markdown formatted text.
+  attr_reader :text
+
+  # Whether smarty-like quote translation should be performed.
+  attr_accessor :smart
+
+  # Whether footnotes should be 
+  attr_accessor :notes
+
+  def initialize(text, *extensions)
+    @smart = false
+    @notes = false
+    @text = text
+    extensions.each { |e| send(&quot;#{e}=&quot;, true) }
+  end
+
+end</diff>
      <filename>lib/markdown.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1792fabb9feadc55096d093fd472436740b0d8fe</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Tomayko</name>
    <email>rtomayko@gmail.com</email>
  </author>
  <url>http://github.com/rtomayko/rpeg-markdown/commit/dd18f062afd1062a56778b58af7c53be4ed59ad7</url>
  <id>dd18f062afd1062a56778b58af7c53be4ed59ad7</id>
  <committed-date>2008-05-21T00:50:49-07:00</committed-date>
  <authored-date>2008-05-21T00:50:49-07:00</authored-date>
  <message>first working version of extension with tests</message>
  <tree>51f3a57856a46cd77ff15e9465c31e717a26d41e</tree>
  <committer>
    <name>Ryan Tomayko</name>
    <email>rtomayko@gmail.com</email>
  </committer>
</commit>
