Wewt! Deployment is now working! Fully working git-blog skellingtonage, in one day...
[git-blog.git] / lib / git-blog / parser / markdown.rb
blobb4edf8211d4bf9c4b13b199dbf3ef56391b94095
1 require 'redcloth'
3 module GitBlog
4   module Parsers
5     module Markdown
6       def self.parse input
7         input.gsub!(/^(.*)\n=+(\n\s+)*\n/m, '')
8         ::RedCloth.new(input).to_html :markdown
9       end
10     end
11   end
12 end