X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/68ad3cbe4aaaa986b5b6e9f5cfcbf9d9d4c1c319..735d69e66e208bbc5c49d6276c74dc66bf181efe:/doc/zenweb-textile.rb diff --git a/doc/zenweb-textile.rb b/doc/zenweb-textile.rb index bdd716267b..0a4bb6f8c7 100644 --- a/doc/zenweb-textile.rb +++ b/doc/zenweb-textile.rb @@ -10,14 +10,8 @@ module Zenweb ## # Render a page's textile and return the resulting html def render_textile page, content - textile body - end - - ## - # Render textile in +content+ - def textile content require 'RedCloth' - @textile = RedCloth.new(content).to_html + RedCloth.new(content ? content : self.body).to_html end end end