projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18290: address review comments.
[arvados.git]
/
doc
/
zenweb-textile.rb
diff --git
a/doc/zenweb-textile.rb
b/doc/zenweb-textile.rb
index bdd716267bc569b00a2d54ceb6c53fa83fa7b9e7..0b28a6174d5e2a4160c59dfe213d2273de4ba757 100644
(file)
--- 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
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
##
# 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'
require 'RedCloth'
-
@textile = RedCloth.new(content
).to_html
+
RedCloth.new(content ? content : self.body
).to_html
end
end
end
end
end
end