The parsers are appearantly working together, so I can't choose a specific one withou...
authorelliottcable <[email protected]>
Sun, 18 May 2008 09:16:35 +0000 (18 01:16 -0800)
committerelliottcable <[email protected]>
Sun, 18 May 2008 09:16:35 +0000 (18 01:16 -0800)
README.mkdn
lib/git-blog/parser/markdown.rb
lib/git-blog/parser/textile.rb

index 6828c51..0d021c2 100644 (file)
@@ -41,8 +41,8 @@ Requirements
 To run git-blog, you need the following gems:
 
 * gem install git
-* gem install haml (if you wish to create your templates in haml)
-* gem install jgarber-redcloth --source=http://gems.github.com (if you wish to write your posts in Markdown or Textile)
+* gem install haml (if you wish to create your templates or write your posts in haml)
+* gem install RedCloth (if you wish to write your posts in Textile or Markdown)
 
 To develop and contribute to git-blog, you also need:
 
index b4edf82..0b53d6a 100644 (file)
@@ -5,7 +5,7 @@ module GitBlog
     module Markdown
       def self.parse input
         input.gsub!(/^(.*)\n=+(\n\s+)*\n/m, '')
-        ::RedCloth.new(input).to_html :markdown
+        ::RedCloth.new(input).to_html [:markdown, :textile]
       end
     end
   end
index a502fe3..d80789c 100644 (file)
@@ -5,7 +5,7 @@ module GitBlog
     module Textile
       def self.parse input
         input.gsub!(/^(.*)(\n\s+)*\n/m, '')
-        ::RedCloth.new(input).to_html :textile
+        ::RedCloth.new(input).to_html [:textile, :markdown]
       end
     end
   end