diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-10-15 23:01:23 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2018-10-15 23:01:23 +0200 |
commit | 7e9e24b8bc602e6b3690648f5f25149d810f1e13 (patch) | |
tree | a552b83f234757df466105db2fd51430f722a05b /doc | |
parent | f6559e5deff69a244164d49de7c45f26472151db (diff) | |
download | pandoc-7e9e24b8bc602e6b3690648f5f25149d810f1e13.tar.gz |
Lua filter docs: describe Attr type
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua-filter-types-and-objects.md | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/doc/lua-filter-types-and-objects.md b/doc/lua-filter-types-and-objects.md index 1051dbd74..64058392a 100644 --- a/doc/lua-filter-types-and-objects.md +++ b/doc/lua-filter-types-and-objects.md @@ -109,7 +109,7 @@ Block of code. : alias for `attr.classes` ([list] of strings) `attributes` -: alias for `attr.attributes` ([attributes]) +: alias for `attr.attributes` ([Attributes]) `tag`, `t` : the literal `CodeBlock` (string) @@ -141,7 +141,7 @@ Generic block container with attributes : alias for `attr.classes` ([list] of strings) `attributes` -: alias for `attr.attributes` ([attributes]) +: alias for `attr.attributes` ([Attributes]) `tag`, `t` : the literal `Div` (string) @@ -166,7 +166,7 @@ Creates a header element. : alias for `attr.classes` ([list] of strings) `attributes` -: alias for `attr.attributes` ([attributes]) +: alias for `attr.attributes` ([Attributes]) `tag`, `t` : the literal `Header` (string) @@ -307,7 +307,7 @@ Inline code : alias for `attr.classes` ([list] of strings) `attributes` -: alias for `attr.attributes` ([attributes]) +: alias for `attr.attributes` ([Attributes]) `tag`, `t` : the literal `Code` (string) @@ -343,7 +343,7 @@ Image: alt text (list of inlines), target : alias for `attr.classes` ([list] of strings) `attributes` -: alias for `attr.attributes` ([attributes]) +: alias for `attr.attributes` ([Attributes]) `tag`, `t` : the literal `Image` (string) @@ -373,7 +373,7 @@ Hyperlink: alt text (list of inlines), target : alias for `attr.classes` ([list] of strings) `attributes` -: alias for `attr.attributes` ([attributes]) +: alias for `attr.attributes` ([Attributes]) `tag`, `t` : the literal `Link` (string) @@ -463,7 +463,7 @@ Generic inline container with attributes : alias for `attr.classes` ([list] of strings) `attributes` -: alias for `attr.attributes` ([attributes]) +: alias for `attr.attributes` ([Attributes]) `tag`, `t` : the literal `Span` (string) @@ -513,12 +513,27 @@ Superscripted text `tag`, `t` : the literal `Superscript` (string) -## Attributes +## Element components + +### Attr + +A set of element attributes + +`identifier` +: element identifier (string) + +`classes` +: element classes ([list] of strings) + +`attributes` +: collection of key/value pairs ([Attributes]) + +### Attributes List of key/value pairs. Values can be accessed by using keys as indices to the list table. -## Citation +### Citation Single citation entry @@ -541,7 +556,7 @@ Single citation entry `hash` : hash (integer) -## ListAttributes +### ListAttributes List attributes `start` @@ -566,7 +581,7 @@ Hierarchical elements can be either *Sec* (sections) or *Blk* Section elements used to provide hierarchical information on document contents. -**Objects of this type are read-only.*** +**Objects of this type are read-only.** `level` : header level (integer) @@ -575,7 +590,7 @@ document contents. : section numbering ([list] of integers) `attr` -: header attributes ([attributes]) +: header attributes ([Attr]) `label` : header content ([list] of [inlines]) @@ -629,5 +644,5 @@ Pandoc reader options [inline]: #inline [inlines]: #inline [Attr]: #attr -[attributes]: #attributes +[Attributes]: #attributes [citations]: #citation |