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