class documentation

Table token. This is a container block token. Its children are table row tokens.

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
Class Variable repr_attributes 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

Inherited from Token (via BlockToken):

Method __repr__ Undocumented
@staticmethod
def parse_align(column): (source)

Helper function; returns align option from cell content.

Returns
None if align = left; 0 if align = center; 1 if align = right.
@staticmethod
def split_delimiter(delimiter): (source)

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): (source)

Undocumented

def __init__(self, lines): (source)
repr_attributes: tuple[str, ...] = (source)

Undocumented

children: list = (source)

inner tokens (TableRows).

column_align: list = (source)

align options for each column (default to [None]).

has_header: bool = (source)

whether table has header row.

Undocumented