From bcf1ac6802d91409343fa7af681c08ec8b342730 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 15 Aug 2013 22:26:08 -0400 Subject: [PATCH] ni_nitdoc: use the module markdown Signed-off-by: Jean Privat --- src/ni_nitdoc.nit | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/ni_nitdoc.nit b/src/ni_nitdoc.nit index fb462cc..de56e75 100644 --- a/src/ni_nitdoc.nit +++ b/src/ni_nitdoc.nit @@ -18,6 +18,7 @@ module ni_nitdoc import model_utils import modelize_property +import markdown # The NitdocContext contains all the knowledge used for doc generation class NitdocContext @@ -1685,13 +1686,10 @@ redef class AModule 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 @@ -1702,11 +1700,8 @@ redef class AStdClassdef 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 @@ -1717,11 +1712,8 @@ redef class APropdef 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 -- 1.7.9.5