From ff41b911943ad9c476f144043d5937eb22cd95d9 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Wed, 11 Oct 2017 20:46:11 -0400 Subject: [PATCH] lib/markdown: fix `text` for nested markdown blocks Signed-off-by: Alexandre Terrasa --- lib/markdown/markdown.nit | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/markdown/markdown.nit b/lib/markdown/markdown.nit index 4ae99fb..ecf6064 100644 --- a/lib/markdown/markdown.nit +++ b/lib/markdown/markdown.nit @@ -1140,6 +1140,12 @@ class MDBlock text.append "\n" line = line.next end + var block = first_block + while block != null do + text.append block.text + text.append "\n" + block = block.next + end return text.write_to_string end end -- 1.7.9.5