Fix a namespace conflict for Markdown filters.

This commit is contained in:
Juampi Rodriguez 2008-12-31 15:03:26 -08:00 committed by Nathan Weizenbaum
parent c9a74e21b5
commit 148030c6d1
1 changed files with 5 additions and 5 deletions

View File

@ -249,13 +249,13 @@ END
def render(text)
engine = case @required
when 'rdiscount'
RDiscount
::RDiscount
when 'peg_markdown'
PEGMarkdown
::PEGMarkdown
when 'maruku'
Maruku
::Maruku
when 'bluecloth'
BlueCloth
::BlueCloth
end
engine.new(text).to_html
end
@ -266,7 +266,7 @@ END
lazy_require 'maruku'
def render(text)
Maruku.new(text).to_html
::Maruku.new(text).to_html
end
end
end