markdown: reset headlines collection between two processing
[nit.git] / lib / markdown / markdown.nit
index b29372f..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