pandoc-lua-marshal-0.1.0: Use pandoc types in Lua
Copyright© 2017-2021 Albert Krewinkel John MacFarlane
LicenseMIT
MaintainerAlbert Krewinkel <tarleb+pandoc@moltkeplatz.de>
Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Lua.Marshal.Attr

Description

Helpers to make pandoc's Attr elements usable in Lua, and to get objects back into Haskell.

Synopsis

Documentation

typeAttr :: LuaError e => DocumentedType e Attr Source #

Attr object type.

peekAttr :: LuaError e => Peeker e Attr Source #

Retrieves an Attr value from a string, a table, or an Attr userdata object. A string is used as an identifier; a table is either an HTML-like set of attributes, or a triple containing the identifier, classes, and attributes.

pushAttr :: LuaError e => Pusher e Attr Source #

Pushes an Attr value as Attr userdata object.

mkAttr :: LuaError e => DocumentedFunction e Source #

Constructor for Attr.

mkAttributeList :: LuaError e => DocumentedFunction e Source #

Constructor for AttributeList.