android: update example in audio
[nit.git] / lib / markdown / markdown.nit
index 1a84b0e..2426d53 100644 (file)
@@ -150,6 +150,7 @@ class MarkdownProcessor
                parent.remove_surrounding_empty_lines
                recurse(parent, false)
                # output processed text
+               decorator.headlines.clear
                return emit(parent.kind)
        end
 
@@ -1120,6 +1121,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