repo.or.cz
/
git-blog.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Re-ordered markdown parsers... again. Maruku first, most featureful.
[git-blog.git]
/
lib
/
git-blog
/
parser
/
haml.rb
blob
e01480575cfcc0a86345414497d9044aa65b16af
1
require 'haml'
2
3
module GitBlog
4
module Parsers
5
module Haml
6
def self.parse input
7
input.gsub!(/^(.*)(\n\s+)*\n/m, '')
8
::Haml::Engine.new(input).render
9
end
10
end
11
end
12
end