diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2020-07-25 20:29:21 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2020-07-25 20:37:57 +0200 |
commit | 44c4660a31fcb6034a7368a3596ab7a252a87ad4 (patch) | |
tree | c30788e810abab1b7b12511863dbaee6a9c6b4d0 /doc/lua-filters.md | |
parent | 9dd4d077c0729c200a5172dbeaee92f8a0d985f5 (diff) | |
download | pandoc-44c4660a31fcb6034a7368a3596ab7a252a87ad4.tar.gz |
Lua filters: make attr argument optional in Table constructor
This changes the Lua API. It is highly unlikely for this change to
affect existing filters, since the documentation for the new Table
constructor (and type) was incomplete and partly wrong before.
The Lua API is now more consistent, as all constructors for elements
with attributes now take attributes as the last parameter.
Diffstat (limited to 'doc/lua-filters.md')
-rw-r--r-- | doc/lua-filters.md | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md index 222f40a03..11c54a8fd 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -1104,6 +1104,9 @@ Values of this type can be created with the Fields: +`attr` +: table attributes ([Attr]) + `caption` : table caption ([Caption]) @@ -1120,8 +1123,14 @@ Fields: `foot` : table foot ([TableFoot]) -`attr` -: element attributes ([Attr]) +`identifier` +: alias for `attr.identifier` (string) + +`classes` +: alias for `attr.classes` ([List] of strings) + +`attributes` +: alias for `attr.attributes` ([Attributes]) `tag`, `t` : the literal `Table` (string) @@ -2144,15 +2153,12 @@ format, and functions to filter and modify a subtree. Returns: [RawBlock](#type-rawblock) object -[`Table (attr, caption, colspecs, head, bodies, foot)`]{#pandoc.table} +[`Table (caption, colspecs, head, bodies, foot[, attr])`]{#pandoc.table} : Creates a table element. Parameters: - `attr`: - : element attributes - `caption`: : table [caption](#type-caption) @@ -2168,6 +2174,9 @@ format, and functions to filter and modify a subtree. `foot`: : [table foot](#type-tablefoot) + `attr`: + : element attributes + Returns: [Table](#type-table) object ## Inline |