+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: CC-BY-SA-3.0
+
require 'zenweb'
module ZenwebTextile
##
# 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