class documentation

class Table(BlockToken):

View In Hierarchy

Table token.
Static Method parse​_align Helper function; returns align option from cell content.
Static Method read Undocumented
Static Method split​_delimiter Helper function; returns a list of align options.
Static Method start Undocumented
Method __init__ Undocumented
Instance Variable children inner tokens (TableRows).
Instance Variable column​_align align options for each column (default to [None]).
Instance Variable has​_header whether table has header row.
Instance Variable header Undocumented

Inherited from BlockToken:

Method __contains__ Undocumented
@staticmethod
def parse_align(column):
Helper function; returns align option from cell content.
Returns
None if align = left; 0 if align = center; 1 if align = right.
@staticmethod
def read(lines):

Undocumented

@staticmethod
def split_delimiter(delimiter):

Helper function; returns a list of align options.

Args:
delimiter (str): e.g.: "| :--- | :---: | ---: |

"

Returns:
a list of align options (None, 0 or 1).
@staticmethod
def start(line):

Undocumented

def __init__(self, lines):
children: list =
inner tokens (TableRows).
column_align: list =
align options for each column (default to [None]).
has_header: bool =
whether table has header row.
header =

Undocumented