Text.Pandoc.Lua.Marshal.Cell

pandoc-lua-marshal-0.1.4: Use pandoc types in Lua

Copyright | © 2021 Albert Krewinkel
License | MIT
Maintainer | Albert Krewinkel <tarleb+pandoc@moltkeplatz.de>
Safe Haskell | Safe-Inferred
Language | Haskell2010

Text.Pandoc.Lua.Marshal.Cell

Description

Marshaling/unmarshaling functions of table `Cell` values.

Synopsis

- peekCell :: LuaError e => Peeker e Cell
- peekCellFuzzy :: LuaError e => Peeker e Cell
- pushCell :: LuaError e => Cell -> LuaE e ()
- typeCell :: LuaError e => DocumentedType e Cell
- mkCell :: LuaError e => DocumentedFunction e

# Documentation

peekCell :: LuaError e => Peeker e Cell #

Retrieves a `Cell` object from the stack.

peekCellFuzzy :: LuaError e => Peeker e Cell #

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`.

pushCell :: LuaError e => Cell -> LuaE e () #

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

typeCell :: LuaError e => DocumentedType e Cell #

Cell object type.

mkCell :: LuaError e => DocumentedFunction e #

Constructor function for `Cell` values.