def METHOD_NAME(self, m, state):
    thead, aligns = _process_table(m.group(1), m.group(2))
    text = re.sub(r'\n$', '', m.group(3))
    rows = []
    for i, v in enumerate(text.split('\n')):
        rows.append(_process_row(v, aligns))
    children = [thead, {'type': 'table_body', 'children': rows}]
    return {'type': 'table', 'children': children}