import model_utils
import modelize_property
+import markdown
# The NitdocContext contains all the knowledge used for doc generation
class NitdocContext
end
private fun full_comment: String do
- var res = new Buffer
if n_moduledecl != null and n_moduledecl.n_doc != null then
- for t in n_moduledecl.n_doc.n_comment do
- res.append(t.text.substring_from(1).html_escape)
- end
+ return n_moduledecl.n_doc.full_markdown.html
end
- return res.to_s
+ return ""
end
end
end
private fun full_comment: String do
- var res = new Buffer
- if n_doc != null then
- for t in n_doc.n_comment do res.append(t.text.substring_from(1).html_escape)
- end
- return res.to_s
+ if n_doc != null then return n_doc.full_markdown.html
+ return ""
end
end
end
private fun full_comment: String do
- var res = new Buffer
- if n_doc != null then
- for t in n_doc.n_comment do res.append(t.text.substring_from(1).html_escape)
- end
- return res.to_s
+ if n_doc != null then return n_doc.full_markdown.html
+ return ""
end
end