repo.or.cz
/
merb_radiant.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Renamed helpers to correspond to renamed Controller classes.
[merb_radiant.git]
/
radiant_extensions_plugins
/
extensions
/
markdown_filter
/
lib
/
.svn
/
text-base
/
markdown_filter.rb.svn-base
blob
01a6a93d77658dbf599fc0437a46b44f52159163
1
require 'bluecloth'
2
require 'rubypants/rubypants'
3
4
class MarkdownFilter < TextFilter
5
description_file File.dirname(__FILE__) + "/../markdown.html"
6
def filter(text)
7
RubyPants.new(BlueCloth.new(text).to_html).to_html
8
end
9
end