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

Copyright | © 2021-2026 Albert Krewinkel
License | MIT
Maintainer | Albert Krewinkel <tarleb+pandoc@moltkeplatz.de>
Safe Haskell | None
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 Source #

Retrieves a `Cell` object from the stack.

peekCellFuzzy :: LuaError e => Peeker e Cell 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`.

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

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

typeCell :: LuaError e => DocumentedType e Cell Source #

Cell object type.

mkCell :: LuaError e => DocumentedFunction e Source #

Constructor function for `Cell` values.