lib/restapi/helpers.rb in restapi-0.0.2 vs lib/restapi/helpers.rb in restapi-0.0.3
- old
+ new
@@ -1,8 +1,8 @@
module Restapi
module Helpers
- def rdoc
- @rdoc ||= RDoc::Markup::ToHtml.new
+ def markup_to_html(text)
+ Restapi.configuration.markup.to_html(text.strip_heredoc)
end
def full_url(path)
unless @prefix
@prefix = ""