git.iko.soy/typeable/pandoc
on master help sign in
Lua filter docs: describe Attr type
7e9e24bAlbert Krewinkel
doc/lua-filter-types-and-objects.md+28−13
@@ -109,7 +109,7 @@ Block of code.
109: alias for `attr.classes` ([list] of strings)
109: alias for `attr.classes` ([list] of strings)
110
110
111`attributes`
111`attributes`
112−: alias for `attr.attributes` ([attributes])
112+: alias for `attr.attributes` ([Attributes])
113
113
114`tag`, `t`
114`tag`, `t`
115: the literal `CodeBlock` (string)
115: the literal `CodeBlock` (string)
@@ -141,7 +141,7 @@ Generic block container with attributes
141: alias for `attr.classes` ([list] of strings)
141: alias for `attr.classes` ([list] of strings)
142
142
143`attributes`
143`attributes`
144−: alias for `attr.attributes` ([attributes])
144+: alias for `attr.attributes` ([Attributes])
145
145
146`tag`, `t`
146`tag`, `t`
147: the literal `Div` (string)
147: the literal `Div` (string)
@@ -166,7 +166,7 @@ Creates a header element.
166: alias for `attr.classes` ([list] of strings)
166: alias for `attr.classes` ([list] of strings)
167
167
168`attributes`
168`attributes`
169−: alias for `attr.attributes` ([attributes])
169+: alias for `attr.attributes` ([Attributes])
170
170
171`tag`, `t`
171`tag`, `t`
172: the literal `Header` (string)
172: the literal `Header` (string)
@@ -307,7 +307,7 @@ Inline code
307: alias for `attr.classes` ([list] of strings)
307: alias for `attr.classes` ([list] of strings)
308
308
309`attributes`
309`attributes`
310−: alias for `attr.attributes` ([attributes])
310+: alias for `attr.attributes` ([Attributes])
311
311
312`tag`, `t`
312`tag`, `t`
313: the literal `Code` (string)
313: the literal `Code` (string)
@@ -343,7 +343,7 @@ Image: alt text (list of inlines), target
343: alias for `attr.classes` ([list] of strings)
343: alias for `attr.classes` ([list] of strings)
344
344
345`attributes`
345`attributes`
346−: alias for `attr.attributes` ([attributes])
346+: alias for `attr.attributes` ([Attributes])
347
347
348`tag`, `t`
348`tag`, `t`
349: the literal `Image` (string)
349: the literal `Image` (string)
@@ -373,7 +373,7 @@ Hyperlink: alt text (list of inlines), target
373: alias for `attr.classes` ([list] of strings)
373: alias for `attr.classes` ([list] of strings)
374
374
375`attributes`
375`attributes`
376−: alias for `attr.attributes` ([attributes])
376+: alias for `attr.attributes` ([Attributes])
377
377
378`tag`, `t`
378`tag`, `t`
379: the literal `Link` (string)
379: the literal `Link` (string)
@@ -463,7 +463,7 @@ Generic inline container with attributes
463: alias for `attr.classes` ([list] of strings)
463: alias for `attr.classes` ([list] of strings)
464
464
465`attributes`
465`attributes`
466−: alias for `attr.attributes` ([attributes])
466+: alias for `attr.attributes` ([Attributes])
467
467
468`tag`, `t`
468`tag`, `t`
469: the literal `Span` (string)
469: the literal `Span` (string)
@@ -513,12 +513,27 @@ Superscripted text
513`tag`, `t`
513`tag`, `t`
514: the literal `Superscript` (string)
514: the literal `Superscript` (string)
515
515
516+## Element components
517+
518+### Attr
519+
520+A set of element attributes
521+
522+`identifier`
523+: element identifier (string)
524+
525+`classes`
526+: element classes ([list] of strings)
527+
528+`attributes`
529+: collection of key/value pairs ([Attributes])
530+
516−## Attributes
531+### Attributes
517
532
518List of key/value pairs. Values can be accessed by using keys as
533List of key/value pairs. Values can be accessed by using keys as
519indices to the list table.
534indices to the list table.
520
535
521−## Citation
536+### Citation
522
537
523Single citation entry
538Single citation entry
524
539
@@ -541,7 +556,7 @@ Single citation entry
541`hash`
556`hash`
542: hash (integer)
557: hash (integer)
543
558
544−## ListAttributes
559+### ListAttributes
545List attributes
560List attributes
546
561
547`start`
562`start`
@@ -566,7 +581,7 @@ Hierarchical elements can be either *Sec* (sections) or *Blk*
566Section elements used to provide hierarchical information on
581Section elements used to provide hierarchical information on
567document contents.
582document contents.
568
583
569−**Objects of this type are read-only.***
584+**Objects of this type are read-only.**
570
585
571`level`
586`level`
572: header level (integer)
587: header level (integer)
@@ -575,7 +590,7 @@ document contents.
575: section numbering ([list] of integers)
590: section numbering ([list] of integers)
576
591
577`attr`
592`attr`
578−: header attributes ([attributes])
593+: header attributes ([Attr])
579
594
580`label`
595`label`
581: header content ([list] of [inlines])
596: header content ([list] of [inlines])
@@ -629,5 +644,5 @@ Pandoc reader options
629[inline]: #inline
644[inline]: #inline
630[inlines]: #inline
645[inlines]: #inline
631[Attr]: #attr
646[Attr]: #attr
632−[attributes]: #attributes
647+[Attributes]: #attributes
633[citations]: #citation
648[citations]: #citation