Only require parsers when they're needed
[git-blog.git] / lib / git-blog / parsers.rb
blob1e84c83d3e0274f7ea9a94067f897ca0feae30c3
1 module GitBlog
2   module Parsers
3     def self.fix_pres string
4       string.gsub %r!([ \t]*)<pre>(.*?)</pre>!m do |match|
5         match.gsub(/^#{$1}/, '')
6       end
7     end
8   end
9 end