Module

marksy/tables

src/marksy/tables.pooka

A table is a paragraph that has kept its columns in order. Split pipes before parsing inline markup: an escaped pipe belongs to its cell even inside code, while an unescaped pipe always marks the next column.

API reference

function

parse

src/marksy/tables.pooka:18
parse(
  source: String,
  definitions: List(links.Definition),
  options: syntax.Options,
  span: ast.Span
) -> Option(ast.Block)

Try the header and delimiter row together. Unequal column counts leave the original paragraph alone; body rows are padded or truncated to that width.

function

cells

src/marksy/tables.pooka:63
cells(source: String) -> List(String)
INFERREDfn(String) -> List(String)

Strip optional outside pipes after trimming, preserving escaped pipes as literal cell text. Runs of backslashes retain their pairwise meaning.