View Source Typst.Format (Typst v0.1.2)
Contains helper functions for converting elixir datatypes into the format that Typst expects
Summary
Functions
Converts a series of columns mapped as a nested list to a format that can be plugged in an existing table.
Types
Functions
@spec table_content([[column_data()]]) :: String.t()
Converts a series of columns mapped as a nested list to a format that can be plugged in an existing table.
Examples
iex> columns = [["John", 10, 20], ["Alice", 20, 30]]
iex> Typst.Format.table_content(columns)
~s/"John", "10", "20",\n "Alice", "20", "30"/