src/lib/syntax/block/Table.js
function generateTableTree(head, separator) {
    return {
        type: 'Table',
        children: [{
            type: 'TableHead',
            children: [{
                type: 'TableRow',
                children: head.map((rawValue, index) => ({
                    type: 'TableHeadCell',
                    align: separator[index],
                    rawValue
                }))
            }]
        }]
    };
}
function generateTableTree(head, separator) {
    return {
        type: 'Table',
        children: [{
            type: 'TableHead',
            children: [{
                type: 'TableRow',
                children: head.map((rawValue, index) => ({
                    type: 'TableHeadCell',
                    align: separator[index],
                    rawValue
                }))
            }]
        }]
    };
}
function generateTableTree ( head , separator ) { return { type : 'Table' , children : [ { type : 'TableHead' , children : [ { type : 'TableRow' , children : head . map ( ( rawValue , index ) => ( { type : 'TableHeadCell' , align : separator [ index ] , rawValue } ) ) } ] } ] } ; }
get the initial table render tree that includes headers
@param head
@param separator
@returns {{type: string, children: [*]}}
get the initial table render tree that includes headers