Merge: markdown: merge MDProcessor and MDEmitter
[nit.git] / lib / markdown / markdown.nit
index 1a84b0e..b29372f 100644 (file)
@@ -1120,6 +1120,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