There's some bug going on here, it won't parse links in this order.
[git-blog.git] / lib / git-blog / parser / markdown.rb
blob1127b6b214d01ba8a5d86d0ec1f926285d8687b9
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, :textile]
9       end
10     end
11   end
12 end