X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/68ad3cbe4aaaa986b5b6e9f5cfcbf9d9d4c1c319..7865723dc5eee129e7ac269f3495274a13ff70ae:/doc/zenweb-textile.rb diff --git a/doc/zenweb-textile.rb b/doc/zenweb-textile.rb index bdd716267b..0b28a6174d 100644 --- a/doc/zenweb-textile.rb +++ b/doc/zenweb-textile.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: CC-BY-SA-3.0 + require 'zenweb' module ZenwebTextile @@ -10,14 +14,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