MatchToLines = function (match) {
    var lines = [],
        base = match.LineNumber,
        nBefore = match.Before.length,
        nAfter = match.After.length;
    match.Before.forEach(function (line, index) {
        lines.push({
            Number: base - nBefore + index,
            Content: line,
            Match: false,
        });
    });

    lines.push({
        Number: base,
        Content: match.Line,
        Match: true,
    });

    match.After.forEach(function (line, index) {
        lines.push({
            Number: base + index + 1,
            Content: line,
            Match: false,
        });
    });

    return lines;
}
Take a list of matches and turn it into a simple list of lines.