forgot to index inline span handler
preserve order of markers

keeping the array index itself does not help