package cmarkit
-
cmarkit
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Tables.
type sep = align option * Layout.count
The type for separators. The column aligment and the number of -
for layout preservation.
type cell_layout = Layout.blanks * Layout.blanks
The type for cell layout, initial and trailing blanks.
type row = [
| `Header of (Inline.t * cell_layout) list
| `Sep of sep node list
| `Data of (Inline.t * cell_layout) list
]
The type for rows. The lists only have entries for columns as found in rows in the document. You need to pad them on the right with more columns to reach the table's col_count
.
The type for tables.
val make : ?indent:Layout.indent -> (row node * Layout.blanks) list -> t
make rows
is a table row rows
.
val indent : t -> Layout.indent
indent t
is the indentation to the first pipe found on the first row.
val col_count : t -> int
col_count t
is the number of columns in the table.
val rows : t -> (row node * Layout.blanks) list
rows t
are the table's rows.