# Collect block line text.
fun text: String do
var text = new FlatBuffer
var line = first_line
while line != null do
if not line.is_empty then
text.append line.text
end
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
lib/markdown/markdown.nit:1113,2--1131,4