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
Wewt! Deployment is now working! Fully working git-blog skellingtonage, in one day...
[git-blog.git]
/
lib
/
git-blog
/
parser
/
markdown.rb
blob
b4edf8211d4bf9c4b13b199dbf3ef56391b94095
1
require 'redcloth'
2
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