pandoc-lua-marshal-0.2.2: Use pandoc types in Lua
Copyright© 2021-2023 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <tarleb+pandoc@moltkeplatz.de>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Pandoc.Lua.Marshal.TableParts

Contents

Description

Marshaling/unmarshaling functions of types that are used exclusively with tables.

Synopsis

Documentation

peekCaption :: LuaError e => Peeker e Caption Source #

Peek Caption element

pushCaption :: LuaError e => Caption -> LuaE e () Source #

Push Caption element

peekColSpec :: LuaError e => Peeker e ColSpec Source #

Peek a ColSpec value as a pair of Alignment and ColWidth.

pushColSpec :: LuaError e => Pusher e ColSpec Source #

Push a ColSpec value as a pair of Alignment and ColWidth.

peekRow :: LuaError e => Peeker e Row Source #

Retrieves a Cell object from the stack.

peekRowFuzzy :: LuaError e => Peeker e Row Source #

Retrieves a Cell from the stack, accepting either a 'pandoc Cell' userdata object or a table with fields attr, alignment, row_span, col_span, and contents.

pushRow :: LuaError e => Row -> LuaE e () Source #

Push a table Row as a table with fields attr, alignment, row_span, col_span, and contents.

peekTableBody :: LuaError e => Peeker e TableBody Source #

Retrieves a TableBody value from a Lua table with fields attr, row_head_columns, head, and body.

pushTableBody :: LuaError e => Pusher e TableBody Source #

Pushes a TableBody value as a Lua table with fields attr, row_head_columns, head, and body.

peekTableFoot :: LuaError e => Peeker e TableFoot Source #

Retrieves a Cell from the stack.

pushTableFoot :: LuaError e => TableFoot -> LuaE e () Source #

Push a TableFoot as a userdata value.

peekTableHead :: LuaError e => Peeker e TableHead Source #

Retrieves a Cell from the stack.

pushTableHead :: LuaError e => TableHead -> LuaE e () Source #

Push a TableHead as a userdata value.

Constructors

mkRow :: LuaError e => DocumentedFunction e Source #

Constructor function for Row values.

mkTableFoot :: LuaError e => DocumentedFunction e Source #

Constructor function for Row values.

mkTableHead :: LuaError e => DocumentedFunction e Source #

Constructor function for Row values.