Typst.Format (Typst v0.1.4)
View SourceContains helper functions for converting elixir datatypes into the format that Typst expects
Summary
Functions
table_content(columns)
deprecated
Converts a series of columns mapped as a nested list to a format that can be plugged in an existing table.
Types
Functions
@spec bold(String.Chars.t()) :: String.t()
@spec content(String.Chars.t()) :: String.t()
This function is deprecated. use %Typst.Format.Table{}.
@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"/