X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3dc2b0008be4e09b47f73aeeb97d005cd7836619..ac2ea4ef187f7df369551a8cfa047fed8a1a2ba9:/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