src/lib/syntax/block/Table.js
function generateTableRowNode(line, separator) {

    const tableRow = {
        type: 'TableRow',
        children: separator.map(align => ({
            type: 'TableDataCell',
            align
        }))
    };

    for (let i = 0, data = calRow(line), len = data.length; i < len; i++) {
        tableRow.children[i].rawValue = data[i];
    }

    return tableRow;

}
function generateTableRowNode(line, separator) {

    const tableRow = {
        type: 'TableRow',
        children: separator.map(align => ({
            type: 'TableDataCell',
            align
        }))
    };

    for (let i = 0, data = calRow(line), len = data.length; i < len; i++) {
        tableRow.children[i].rawValue = data[i];
    }

    return tableRow;

}
function generateTableRowNode ( line , separator ) { const tableRow = { type : 'TableRow' , children : separator . map ( align => ( { type : 'TableDataCell' , align } ) ) } ; for ( let i = 0 , data = calRow ( line ) , len = data . length ; i < len ; i ++ ) { tableRow . children [ i ] . rawValue = data [ i ] ; } return tableRow ; }
return a table row that includes table data cells
@param line
@param separator
@returns {{type: string, children}}
return a table row that includes table data cells