lib/malt/engines/bluecloth.rb in malt-0.1.1 vs lib/malt/engines/bluecloth.rb in malt-0.2.0
- old
+ new
@@ -7,12 +7,12 @@
register :markdown, :md
# Convert Markdown text to HTML text.
def render(params)
- text = params[:text]
- format = params[:format]
- case format
+ text = params[:text]
+ into = params[:to]
+ case into
when :html, nil
intermediate(params).to_html
else
super(params)
end