first
and last
# Merge all nodes between `first` and `last`
private fun merge_if_needed(first, last: nullable MdText) do
if first != null and last != null and first != last then
var buffer = new Buffer
buffer.append(first.literal)
var node = first.next
var stop = last.next
while node != null and node != stop do
buffer.append(node.as(MdText).literal)
first.location.line_end = node.location.line_end
first.location.column_end = node.location.column_end
var unlink = node
node = node.next
unlink.unlink
end
var literal = buffer.write_to_string
first.literal = literal
end
end
lib/markdown2/markdown_inline_parsing.nit:1101,2--1119,4