Fix a namespace conflict for Markdown filters.
This commit is contained in:
parent
c9a74e21b5
commit
148030c6d1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue