@@ -141,10 +141,10 @@ elements.
141Element filter functions within a filter set are called in a
141Element filter functions within a filter set are called in a
142fixed order, skipping any which are not present:
142fixed order, skipping any which are not present:
144− 1. functions for [*Inline* elements](#type-ref-Inline),
144+ 1. functions for [*Inline* elements](#type-inline),
145− 2. functions for [*Block* elements](#type-ref-Block) ,
145+ 2. functions for [*Block* elements](#type-block) ,
146− 3. the [*Meta*](#type-ref-Meta) filter function, and last
146+ 3. the [`Meta`](#type-meta) filter function, and last
147− 4. the [*Pandoc*](#type-ref-Meta) filter function.
147+ 4. the [`Pandoc`](#type-pandoc) filter function.
149It is still possible to force a different order by explicitly
149It is still possible to force a different order by explicitly
150returning multiple filter sets. For example, if the filter for
150returning multiple filter sets. For example, if the filter for
@@ -179,13 +179,12 @@ variables.
179: Table of the options which were provided to the parser.
179: Table of the options which were provided to the parser.
181`PANDOC_VERSION`
181`PANDOC_VERSION`
182−: Contains the pandoc version as a [Version
182+: Contains the pandoc version as a [Version] object which
183− object](#type-ref-Version) which behaves like a numerically
184− indexed table, most significant number first. E.g., for
183+ behaves like a numerically indexed table, most significant
184+ number first. E.g., for pandoc 2.7.3, the value of the
185− pandoc 2.7.3, the value of the variable is equivalent to a
185+ variable is equivalent to a table `{2, 7, 3}`. Use
186− table `{2, 7, 3}`. Use `tostring(PANDOC_VERSION)` to produce
186+ `tostring(PANDOC_VERSION)` to produce a version string. This
187− a version string. This variable is also set in custom
187+ variable is also set in custom writers.
190`PANDOC_API_VERSION`
189`PANDOC_API_VERSION`
191: Contains the version of the pandoc-types API against which
190: Contains the version of the pandoc-types API against which
@@ -204,7 +203,7 @@ variables.
204`PANDOC_STATE`
203`PANDOC_STATE`
205: The state shared by all readers and writers. It is used by
204: The state shared by all readers and writers. It is used by
206 pandoc to collect and pass information. The value of this
205 pandoc to collect and pass information. The value of this
207− variable is of type [CommonState](#type-ref-CommonState) and
206+ variable is of type [CommonState] and
208 is read-only.
207 is read-only.
210# Pandoc Module
209# Pandoc Module
@@ -233,12 +232,12 @@ those elements accessible through the filter function parameter.
234Some pandoc functions have been made available in lua:
233Some pandoc functions have been made available in lua:
236−- [`walk_block`](#walk_block) and
235+- [`walk_block`](#pandoc.walk_block) and
237− [`walk_inline`](#walk_inline) allow filters to be applied
236+ [`walk_inline`](#pandoc.walk_inline) allow filters to be applied
238 inside specific block or inline elements;
237 inside specific block or inline elements;
239−- [`read`](#read) allows filters to parse strings into pandoc
238+- [`read`](#pandoc.read) allows filters to parse strings into pandoc
240 documents;
239 documents;
241−- [`pipe`](#pipe) runs an external command with input from and
240+- [`pipe`](#pandoc.pipe) runs an external command with input from and
242 output to strings;
241 output to strings;
243- the [`pandoc.mediabag`](#module-pandoc.mediabag) module
242- the [`pandoc.mediabag`](#module-pandoc.mediabag) module
244 allows access to the "mediabag," which stores binary content
243 allows access to the "mediabag," which stores binary content
@@ -573,10 +572,10 @@ function CodeBlock(block)
576−## Building images with tikz
575+## Building images with Ti*k*Z
578−This filter converts raw LaTeX tikz environments into images. It
577+This filter converts raw LaTeX Ti*k*Z environments into images. It
579−works with both PDF and HTML output. The tikz code is compiled
578+works with both PDF and HTML output. The Ti*k*Z code is compiled
580to an image using `pdflatex`, and the image is converted from
579to an image using `pdflatex`, and the image is converted from
581pdf to svg format using
580pdf to svg format using
582[`pdf2svg`](https://github.com/dawbarton/pdf2svg), so both of
581[`pdf2svg`](https://github.com/dawbarton/pdf2svg), so both of
@@ -666,7 +665,7 @@ Example of use:
666# Lua type reference
665# Lua type reference
668This section describes the types of objects available to Lua
667This section describes the types of objects available to Lua
669−filters. See the [pandoc module](#module-pandoc%7D) for
668+filters. See the [pandoc module](#module-pandoc) for
670functions to create these objects.
669functions to create these objects.
672## Shared Properties
671## Shared Properties
@@ -683,70 +682,63 @@ Usage:
683 local emph = pandoc.Emph {pandoc.Str 'important'}
682 local emph = pandoc.Emph {pandoc.Str 'important'}
684 local cloned_emph = emph:clone() -- note the colon
683 local cloned_emph = emph:clone() -- note the colon
686−## Pandoc {#type-ref-pandoc}
685+## Pandoc {#type-pandoc}
688Pandoc document
687Pandoc document
690−Object equality is determined via
689+Object equality is determined via [`pandoc.utils.equals`].
691−[`pandoc.utils.equals`](#utils-equals).
694−: document content ([List](#module-pandoc.list) of
692+: document content ([List] of [Blocks])
695− [Block](#type-ref-Block)s)
698−: document meta information ([Meta](#Meta) object)
695+: document meta information ([Meta] object)
700−## Meta {#type-ref-meta}
697+## Meta {#type-meta}
702Meta information on a document; string-indexed collection of
699Meta information on a document; string-indexed collection of
703−[MetaValue](#type-ref-MetaValue)s.
700+[MetaValues].
705−Object equality is determined via
702+Object equality is determined via [`pandoc.utils.equals`].
706−[`pandoc.utils.equals`](#utils-equals).
708−## MetaValue {#type-ref-MetaValue}
704+## MetaValue {#type-metavalue}
710Document meta information items.
706Document meta information items.
712−Object equality is determined via
708+Object equality is determined via [`pandoc.utils.equals`].
713−[`pandoc.utils.equals`](#utils-equals).
715−### MetaBlocks {#type-ref-MetaBlocks}
710+### MetaBlocks {#type-metablocks}
717−A list of blocks usable as meta value
712+A list of blocks usable as meta value ([List] of [Blocks])
718−([List](#module-pandoc.list) of [Block](#type-ref-Block)s)
722`tag`, `t`
716`tag`, `t`
723: the literal `MetaBlocks` (string)
717: the literal `MetaBlocks` (string)
725−### MetaBool {#type-ref-MetaBool}
719+### MetaBool {#type-metabool}
727Plain Lua boolean value (boolean)
721Plain Lua boolean value (boolean)
729−### MetaInlines {#type-ref-MetaInlines}
723+### MetaInlines {#type-metainlines}
731−List of inlines used in metadata ([List](#module-pandoc.list) of
725+List of inlines used in metadata ([List] of [Inlines])
732−[Inline](#type-ref-Inline)s)
736`tag`, `t`
729`tag`, `t`
737: the literal `MetaInlines` (string)
730: the literal `MetaInlines` (string)
739−### MetaList {#type-ref-iMetaList}
732+### MetaList {#type-metalist}
741−A list of other [MetaValue](#type-ref-MetaValue)s.
734+A list of other [MetaValues]. ([List] of [MetaValues])
742−([List](#module-pandoc.list))
746`tag`, `t`
738`tag`, `t`
747: the literal `MetaList` (string)
739: the literal `MetaList` (string)
749−### MetaMap {#type-ref-MetaMap}
741+### MetaMap {#type-metamap}
751A string-indexed map of meta-values. (table)
743A string-indexed map of meta-values. (table)
@@ -758,38 +750,35 @@ Fields:
758*Note*: The fields will be shadowed if the map contains a field
750*Note*: The fields will be shadowed if the map contains a field
759with the same name as those listed.
751with the same name as those listed.
761−### MetaString {#type-ref-MetaString}
753+### MetaString {#type-metastring}
763Plain Lua string value (string)
755Plain Lua string value (string)
765−## Block {#type-ref-Block}
757+## Block {#type-block}
767−Object equality is determined via
759+Object equality is determined via [`pandoc.utils.equals`].
768−[`pandoc.utils.equals`](#utils-equals).
770−### BlockQuote {#type-ref-BlockQuote}
761+### BlockQuote {#type-blockquote}
772A block quote element
763A block quote element
775−: block content ([List](#module-pandoc.list) of
766+: block content ([List] of [Blocks])
776− [Block](#type-ref-Block)s)
778`tag`, `t`
768`tag`, `t`
779: the literal `BlockQuote` (string)
769: the literal `BlockQuote` (string)
781−### BulletList {#type-ref-BulletList}
771+### BulletList {#type-bulletlist}
783A bullet list
773A bullet list
786−: list of items ([List](#module-pandoc.list) of
776+: list of items ([List] of [Blocks])
787− [Block](#type-ref-Block)s)
789`tag`, `t`
778`tag`, `t`
790: the literal `BulletList` (string)
779: the literal `BulletList` (string)
792−### CodeBlock {#type-ref-CodeBlock}
781+### CodeBlock {#type-codeblock}
794Block of code.
783Block of code.
@@ -797,23 +786,21 @@ Block of code.
797: code string (string)
786: code string (string)
800−: element attributes ([Attr](#type-ref-Attr))
789+: element attributes ([Attr])
802`identifier`
791`identifier`
803: alias for `attr.identifier` (string)
792: alias for `attr.identifier` (string)
806−: alias for `attr.classes` ([List](#module-pandoc.list) of
795+: alias for `attr.classes` ([List] of strings)
809`attributes`
797`attributes`
810−: alias for `attr.attributes`
798+: alias for `attr.attributes` ([Attributes])
811− ([Attributes](#type-ref-Attributes))
813`tag`, `t`
800`tag`, `t`
814: the literal `CodeBlock` (string)
801: the literal `CodeBlock` (string)
816−### DefinitionList {#type-ref-DefinitionList}
803+### DefinitionList {#type-definitionlist}
818Definition list, containing terms and their explanation.
805Definition list, containing terms and their explanation.
@@ -823,32 +810,30 @@ Definition list, containing terms and their explanation.
823`tag`, `t`
810`tag`, `t`
824: the literal `DefinitionList` (string)
811: the literal `DefinitionList` (string)
826−### Div {#type-ref-Div}
813+### Div {#type-div}
828Generic block container with attributes
815Generic block container with attributes
831−: block content ([List](#module-pandoc.list) of
818+: block content ([List] of [Blocks])
832− [Block](#type-ref-Block)s)
835−: element attributes ([Attr](#type-ref-Attr))
821+: element attributes ([Attr])
837`identifier`
823`identifier`
838: alias for `attr.identifier` (string)
824: alias for `attr.identifier` (string)
841−: alias for `attr.classes` ([List](#module-pandoc.list) of
827+: alias for `attr.classes` ([List] of
844`attributes`
830`attributes`
845−: alias for `attr.attributes`
831+: alias for `attr.attributes` ([Attributes])
846− ([Attributes](#type-ref-Attributes))
848`tag`, `t`
833`tag`, `t`
849: the literal `Div` (string)
834: the literal `Div` (string)
851−### Header {#type-ref-Header}
836+### Header {#type-header}
853Creates a header element.
838Creates a header element.
@@ -856,34 +841,32 @@ Creates a header element.
856: header level (integer)
841: header level (integer)
859−: inline content ([List](#module-pandoc.list) of
844+: inline content ([List] of [Inlines])
860− [Inline](#type-ref-Inline)s)
863−: element attributes ([Attr](#type-ref-Attr))
847+: element attributes ([Attr])
865`identifier`
849`identifier`
866: alias for `attr.identifier` (string)
850: alias for `attr.identifier` (string)
869−: alias for `attr.classes` ([List](#module-pandoc.list) of
853+: alias for `attr.classes` ([List] of strings)
872`attributes`
855`attributes`
873: alias for `attr.attributes`
856: alias for `attr.attributes`
874− ([Attributes](#type-ref-Attributes))
857+ ([Attributes])
876`tag`, `t`
859`tag`, `t`
877: the literal `Header` (string)
860: the literal `Header` (string)
879−### HorizontalRule {#type-ref-HorizontalRule}
862+### HorizontalRule {#type-horizontalrule}
881A horizontal rule.
864A horizontal rule.
883`tag`, `t`
866`tag`, `t`
884: the literal `HorizontalRule` (string)
867: the literal `HorizontalRule` (string)
886−### LineBlock {#type-ref-LineBlock}
869+### LineBlock {#type-lineblock}
888A line block, i.e. a list of lines, each separated from the next
871A line block, i.e. a list of lines, each separated from the next
889by a newline.
872by a newline.
@@ -894,7 +877,7 @@ by a newline.
894`tag`, `t`
877`tag`, `t`
895: the literal `LineBlock` (string)
878: the literal `LineBlock` (string)
897−### Null {#type-ref-Null}
880+### Null {#type-null}
899A null element; this element never produces any output in the
882A null element; this element never produces any output in the
900target format.
883target format.
@@ -902,16 +885,15 @@ target format.
902`tag`, `t`
885`tag`, `t`
903: the literal `Null` (string)
886: the literal `Null` (string)
905−### OrderedList {#type-ref-OrderedList}
888+### OrderedList {#type-orderedlist}
907An ordered list.
890An ordered list.
910−: list items ([List](#module-pandoc.list) of
893+: list items ([List] of [List] of [Blocks])
911− [Block](#type-ref-Block)s)
913`listAttributes`
895`listAttributes`
914−: list parameters ([ListAttributes](#ListAttributes))
896+: list parameters ([ListAttributes])
917: alias for `listAttributes.start` (integer)
899: alias for `listAttributes.start` (integer)
@@ -925,29 +907,27 @@ An ordered list.
925`tag`, `t`
907`tag`, `t`
926: the literal `OrderedList` (string)
908: the literal `OrderedList` (string)
928−### Para {#type-ref-Para}
910+### Para {#type-para}
930A paragraph
912A paragraph
933−: inline content ([List](#module-pandoc.list) of
915+: inline content ([List] of [Inlines])
934− [Inline](#type-ref-Inline)s)
936`tag`, `t`
917`tag`, `t`
937: the literal `Para` (string)
918: the literal `Para` (string)
939−### Plain {#type-ref-Plain}
920+### Plain {#type-plain}
941Plain text, not a paragraph
922Plain text, not a paragraph
944−: inline content ([List](#module-pandoc.list) of
925+: inline content ([List] of [Inlines])
945− [Inline](#type-ref-Inline)s)
947`tag`, `t`
927`tag`, `t`
948: the literal `Plain` (string)
928: the literal `Plain` (string)
950−### RawBlock {#type-ref-RawBlock}
930+### RawBlock {#type-rawblock}
952Raw content of a specified format.
932Raw content of a specified format.
@@ -960,62 +940,56 @@ Raw content of a specified format.
960`tag`, `t`
940`tag`, `t`
961: the literal `RawBlock` (string)
941: the literal `RawBlock` (string)
963−### Table {#type-ref-Table}
943+### Table {#type-table}
968−: table caption ([List](#module-pandoc.list) of
948+: table caption ([List] of [Inlines])
969− [Inline](#type-ref-Inline)s)
972−: column alignments ([List](#module-pandoc.list) of
951+: column alignments ([List] of [Alignment]s)
973− [Alignment](#type-ref-Alignment)s)
976: column widths (number)
954: column widths (number)
979−: header row ([List](#module-pandoc.list) of [table
980− cells](#type-ref-table-cell))
957+: header row ([List] of [table cells](#type-table-cell))
983−: table rows ([List](#module-pandoc.list) of
960+: table rows ([List] of [List]s of [table
984− [List](#module-pandoc.list)s of [table
985− cells](#type-ref-table-cell))
961+ cells](#type-table-cell))
987`tag`, `t`
963`tag`, `t`
988: the literal `Table` (string)
964: the literal `Table` (string)
990−A [table cell]{#table-cell} is a list of blocks.
966+A [table cell]{#type-table-cell} is a list of blocks.
992−*[Alignment]{#Alignment}* is a string value indicating the
968+*[Alignment]{#type-alignment}* is a string value indicating the
993horizontal alignment of a table column. `AlignLeft`,
969horizontal alignment of a table column. `AlignLeft`,
994`AlignRight`, and `AlignCenter` leads cell content tob be
970`AlignRight`, and `AlignCenter` leads cell content tob be
995left-aligned, right-aligned, and centered, respectively. The
971left-aligned, right-aligned, and centered, respectively. The
996default alignment is `AlignDefault` (often equivalent to
972default alignment is `AlignDefault` (often equivalent to
997centered).
973centered).
999−## Inline {#type-ref-Inline}
975+## Inline {#type-inline}
1001−Object equality is determined via
977+Object equality is determined via [`pandoc.utils.equals`].
1002−[`pandoc.utils.equals`](#utils-equals).
1004−### Cite {#type-ref-Cite}
979+### Cite {#type-cite}
1008`content`
983`content`
1009−: ([List](#module-pandoc.list) of [Inline](#type-ref-Inline)s)
984+: ([List] of [Inlines])
1011`citations`
986`citations`
1012−: citation entries ([List](#module-pandoc.list) of
987+: citation entries ([List] of [Citations])
1013− [citations](#type-ref-Citation))
1015`tag`, `t`
989`tag`, `t`
1016: the literal `Cite` (string)
990: the literal `Cite` (string)
1018−### Code {#type-ref-Code}
992+### Code {#type-code}
1020Inline code
994Inline code
@@ -1023,43 +997,39 @@ Inline code
1023: code string (string)
997: code string (string)
1026−: attributes ([Attr](#type-ref-Attr))
1000+: attributes ([Attr])
1028`identifier`
1002`identifier`
1029: alias for `attr.identifier` (string)
1003: alias for `attr.identifier` (string)
1031`classes`
1005`classes`
1032−: alias for `attr.classes` ([List](#module-pandoc.list) of
1006+: alias for `attr.classes` ([List] of strings)
1035`attributes`
1008`attributes`
1036−: alias for `attr.attributes`
1009+: alias for `attr.attributes` ([Attributes])
1037− ([Attributes](#type-ref-Attributes))
1039`tag`, `t`
1011`tag`, `t`
1040: the literal `Code` (string)
1012: the literal `Code` (string)
1042−### Emph {#type-ref-Emph}
1014+### Emph {#type-emph}
1044Emphasized text
1016Emphasized text
1046`content`
1018`content`
1047−: inline content ([List](#module-pandoc.list) of
1019+: inline content ([List] of [Inlines])
1048− [Inline](#type-ref-Inline)s)
1050`tag`, `t`
1021`tag`, `t`
1051: the literal `Emph` (string)
1022: the literal `Emph` (string)
1053−### Image {#type-ref-Image}
1024+### Image {#type-image}
1055Image: alt text (list of inlines), target
1026Image: alt text (list of inlines), target
1058−: attributes ([Attr](#type-ref-Attr))
1029+: attributes ([Attr])
1060`caption`
1031`caption`
1061−: text used to describe the image ([List](#module-pandoc.list)
1032+: text used to describe the image ([List] of [Inlines])
1062− of [Inline](#type-ref-Inline)s)
1065: path to the image file (string)
1035: path to the image file (string)
@@ -1071,33 +1041,30 @@ Image: alt text (list of inlines), target
1071: alias for `attr.identifier` (string)
1041: alias for `attr.identifier` (string)
1073`classes`
1043`classes`
1074−: alias for `attr.classes` ([List](#module-pandoc.list) of
1044+: alias for `attr.classes` ([List] of strings)
1077`attributes`
1046`attributes`
1078−: alias for `attr.attributes`
1047+: alias for `attr.attributes` ([Attributes])
1079− ([Attributes](#type-ref-Attributes))
1081`tag`, `t`
1049`tag`, `t`
1082: the literal `Image` (string)
1050: the literal `Image` (string)
1084−### LineBreak {#type-ref-LineBreak}
1052+### LineBreak {#type-linebreak}
1086Hard line break
1054Hard line break
1088`tag`, `t`
1056`tag`, `t`
1089: the literal `LineBreak` (string)
1057: the literal `LineBreak` (string)
1091−### Link {#type-ref-Link}
1059+### Link {#type-link}
1093Hyperlink: alt text (list of inlines), target
1061Hyperlink: alt text (list of inlines), target
1096−: attributes ([Attr](#type-ref-Attr))
1064+: attributes ([Attr])
1098`content`
1066`content`
1099−: text for this link ([List](#module-pandoc.list) of
1067+: text for this link ([List] of [Inlines])
1100− [Inline](#type-ref-Inline)s)
1103: the link target (string)
1070: the link target (string)
@@ -1106,17 +1073,15 @@ Hyperlink: alt text (list of inlines), target
1106: alias for `attr.identifier` (string)
1073: alias for `attr.identifier` (string)
1108`classes`
1075`classes`
1109−: alias for `attr.classes` ([List](#module-pandoc.list) of
1076+: alias for `attr.classes` ([List] of strings)
1112`attributes`
1078`attributes`
1113−: alias for `attr.attributes`
1079+: alias for `attr.attributes` ([Attributes])
1114− ([Attributes](#type-ref-Attributes))
1116`tag`, `t`
1081`tag`, `t`
1117: the literal `Link` (string)
1082: the literal `Link` (string)
1119−### Math {#type-ref-Math}
1084+### Math {#type-math}
1121TeX math (literal)
1086TeX math (literal)
@@ -1131,17 +1096,17 @@ TeX math (literal)
1131`tag`, `t`
1096`tag`, `t`
1132: the literal `Math` (string)
1097: the literal `Math` (string)
1134−### Note {#type-ref-Note}
1099+### Note {#type-note}
1136Footnote or endnote
1101Footnote or endnote
1138`content`
1103`content`
1139−: ([List](#module-pandoc.list) of [Block](#type-ref-Block)s)
1104+: ([List] of [Blocks])
1141`tag`, `t`
1106`tag`, `t`
1142: the literal `Note` (string)
1107: the literal `Note` (string)
1144−### Quoted {#type-ref-Quoted}
1109+### Quoted {#type-quoted}
1146Quoted text
1111Quoted text
@@ -1150,13 +1115,12 @@ Quoted text
1150 `DoubleQuote` (string)
1115 `DoubleQuote` (string)
1152`content`
1117`content`
1153−: quoted text ([List](#module-pandoc.list) of
1118+: quoted text ([List] of [Inlines])
1154− [Inline](#type-ref-Inline)s)
1156`tag`, `t`
1120`tag`, `t`
1157: the literal `Quoted` (string)
1121: the literal `Quoted` (string)
1159−### RawInline {#type-ref-RawInline}
1123+### RawInline {#type-rawinline}
1161Raw inline
1125Raw inline
@@ -1169,56 +1133,53 @@ Raw inline
1169`tag`, `t`
1133`tag`, `t`
1170: the literal `RawInline` (string)
1134: the literal `RawInline` (string)
1172−### SmallCaps {#type-ref-SmallCaps}
1136+### SmallCaps {#type-smallcaps}
1174Small caps text
1138Small caps text
1176`content`
1140`content`
1177−: ([List](#module-pandoc.list) of [Inline](#type-ref-Inline)s)
1141+: ([List] of [Inlines])
1179`tag`, `t`
1143`tag`, `t`
1180: the literal `SmallCaps` (string)
1144: the literal `SmallCaps` (string)
1182−### SoftBreak {#type-ref-SoftBreak}
1146+### SoftBreak {#type-softbreak}
1184Soft line break
1148Soft line break
1186`tag`, `t`
1150`tag`, `t`
1187: the literal `SoftBreak` (string)
1151: the literal `SoftBreak` (string)
1189−### Space {#type-ref-Space}
1153+### Space {#type-space}
1191Inter-word space
1155Inter-word space
1193`tag`, `t`
1157`tag`, `t`
1194: the literal `Space` (string)
1158: the literal `Space` (string)
1196−### Span {#type-ref-Span}
1160+### Span {#type-span}
1198Generic inline container with attributes
1162Generic inline container with attributes
1201−: attributes ([Attr](#type-ref-Attr))
1165+: attributes ([Attr])
1203`content`
1167`content`
1204−: wrapped content ([List](#module-pandoc.list) of
1168+: wrapped content ([List] of [Inlines])
1205− [Inline](#type-ref-Inline)s)
1207`identifier`
1170`identifier`
1208: alias for `attr.identifier` (string)
1171: alias for `attr.identifier` (string)
1210`classes`
1173`classes`
1211−: alias for `attr.classes` ([List](#module-pandoc.list) of
1174+: alias for `attr.classes` ([List] of strings)
1214`attributes`
1176`attributes`
1215−: alias for `attr.attributes`
1177+: alias for `attr.attributes` ([Attributes])
1216− ([Attributes](#type-ref-Attributes))
1218`tag`, `t`
1179`tag`, `t`
1219: the literal `Span` (string)
1180: the literal `Span` (string)
1221−### Str {#type-ref-Str}
1182+### Str {#type-str}
@@ -1228,60 +1189,56 @@ Text
1228`tag`, `t`
1189`tag`, `t`
1229: the literal `Str` (string)
1190: the literal `Str` (string)
1231−### Strikeout {#type-ref-Strikeout}
1192+### Strikeout {#type-strikeout}
1233Strikeout text
1194Strikeout text
1235`content`
1196`content`
1236−: inline content ([List](#module-pandoc.list) of
1197+: inline content ([List] of [Inlines])
1237− [Inline](#type-ref-Inline)s)
1239`tag`, `t`
1199`tag`, `t`
1240: the literal `Strikeout` (string)
1200: the literal `Strikeout` (string)
1242−### Strong {#type-ref-Strong}
1202+### Strong {#type-strong}
1244Strongly emphasized text
1204Strongly emphasized text
1246`content`
1206`content`
1247−: inline content ([List](#module-pandoc.list) of
1207+: inline content ([List] of [Inlines])
1248− [Inline](#type-ref-Inline)s)
1250`tag`, `t`
1209`tag`, `t`
1251: the literal `Strong` (string)
1210: the literal `Strong` (string)
1253−### Subscript {#type-ref-Subscript}
1212+### Subscript {#type-subscript}
1255Subscripted text
1214Subscripted text
1257`content`
1216`content`
1258−: inline content ([List](#module-pandoc.list) of
1217+: inline content ([List] of [Inlines])
1259− [Inline](#type-ref-Inline)s)
1261`tag`, `t`
1219`tag`, `t`
1262: the literal `Subscript` (string)
1220: the literal `Subscript` (string)
1264−### Superscript {#type-ref-Superscript}
1222+### Superscript {#type-superscript}
1266Superscripted text
1224Superscripted text
1268`content`
1226`content`
1269−: inline content ([List](#module-pandoc.list) of
1227+: inline content ([List] of [Inlines])
1270− [Inline](#type-ref-Inline)s)
1272`tag`, `t`
1229`tag`, `t`
1273: the literal `Superscript` (string)
1230: the literal `Superscript` (string)
1275## Element components
1232## Element components
1277−### Attr {#type-ref-Attr}
1234+### Attr {#type-attr}
1279A set of element attributes. Values of this type can be created
1236A set of element attributes. Values of this type can be created
1280−with the [`pandoc.Attr`](#Attr) constructor. For convenience, it
1237+with the [`pandoc.Attr`](#pandoc.attr) constructor. For
1281−is usually not necessary to construct the value directly if it is
1238+convenience, it is usually not necessary to construct the value
1282−part of an element, and it is sufficient to pass an HTML-like
1239+directly if it is part of an element, and it is sufficient to
1283−table. E.g., to create a span with identifier "text" and classes
1240+pass an HTML-like table. E.g., to create a span with identifier
1284−"a" and "b", on can write:
1241+"text" and classes "a" and "b", on can write:
1286 local span = pandoc.Span('text', {id = 'text', class = 'a b'})
1243 local span = pandoc.Span('text', {id = 'text', class = 'a b'})
@@ -1290,30 +1247,27 @@ This also works when using the `attr` setter:
1290 local span = pandoc.Span 'text'
1247 local span = pandoc.Span 'text'
1291 span.attr = {id = 'text', class = 'a b', other_attribute = '1'}
1248 span.attr = {id = 'text', class = 'a b', other_attribute = '1'}
1293−Object equality is determined via
1250+Object equality is determined via [`pandoc.utils.equals`].
1294−[`pandoc.utils.equals`](#utils-equals).
1296`identifier`
1252`identifier`
1297: element identifier (string)
1253: element identifier (string)
1299`classes`
1255`classes`
1300−: element classes ([List](#module-pandoc.list) of strings)
1256+: element classes ([List] of strings)
1302`attributes`
1258`attributes`
1303−: collection of key/value pairs
1259+: collection of key/value pairs ([Attributes])
1304− ([Attributes](#type-ref-Attributes))
1306−### Attributes {#type-ref-Attributes}
1261+### Attributes {#type-attributes}
1308List of key/value pairs. Values can be accessed by using keys as
1263List of key/value pairs. Values can be accessed by using keys as
1309indices to the list table.
1264indices to the list table.
1311−### Citation {#type-ref-Citation}
1266+### Citation {#type-citation}
1313Single citation entry
1268Single citation entry
1315−Object equality is determined via
1270+Object equality is determined via [`pandoc.utils.equals`].
1316−[`pandoc.utils.equals`](#utils-equals).
1319: citation identifier, e.g., a bibtex key (string)
1273: citation identifier, e.g., a bibtex key (string)
@@ -1323,12 +1277,10 @@ Object equality is determined via
1323 `NormalCitation` (string)
1277 `NormalCitation` (string)
1326−: citation prefix ([List](#module-pandoc.list) of
1280+: citation prefix ([List] of [Inlines])
1327− [Inline](#type-ref-Inline)s)
1330−: citation suffix ([List](#module-pandoc.list) of
1283+: citation suffix ([List] of [Inlines])
1331− [Inline](#type-ref-Inline)s)
1333`note_num`
1285`note_num`
1334: note number (integer)
1286: note number (integer)
@@ -1336,12 +1288,11 @@ Object equality is determined via
1337: hash (integer)
1289: hash (integer)
1339−### ListAttributes {#type-ref-ListAttributes}
1291+### ListAttributes {#type-listattributes}
1341List attributes
1293List attributes
1343−Object equality is determined via
1295+Object equality is determined via [`pandoc.utils.equals`].
1344−[`pandoc.utils.equals`](#utils-equals).
1347: number of the first list item (integer)
1298: number of the first list item (integer)
@@ -1355,7 +1306,7 @@ Object equality is determined via
1355: delimiter of list numbers; one of `DefaultDelim`, `Period`,
1306: delimiter of list numbers; one of `DefaultDelim`, `Period`,
1356 `OneParen`, and `TwoParens` (string)
1307 `OneParen`, and `TwoParens` (string)
1358−## ReaderOptions {#type-ref-ReaderOptions}
1309+## ReaderOptions {#type-readeroptions}
1360Pandoc reader options
1311Pandoc reader options
@@ -1391,22 +1342,21 @@ Pandoc reader options
1391: track changes setting for docx; one of `AcceptChanges`,
1342: track changes setting for docx; one of `AcceptChanges`,
1392 `RejectChanges`, and `AllChanges` (string)
1343 `RejectChanges`, and `AllChanges` (string)
1394−## CommonState {#type-ref-CommonState}
1345+## CommonState {#type-commonstate}
1396The state used by pandoc to collect information and make it
1347The state used by pandoc to collect information and make it
1397available to readers and writers.
1348available to readers and writers.
1399`input_files`
1350`input_files`
1400: List of input files from command line
1351: List of input files from command line
1401− ([List](#module-pandoc.list) of strings)
1352+ ([List] of strings)
1403`output_file`
1354`output_file`
1404: Output file from command line (string or nil)
1355: Output file from command line (string or nil)
1407−: A list of log messages in reverse order
1358+: A list of log messages in reverse order ([List] of
1408− ([List](#module-pandoc.list) of
1409− [LogMessage](#type-ref-LogMessage)s)
1359+ [LogMessage]s)
1411`request_headers`
1361`request_headers`
1412: Headers to add for HTTP requests; table with header names as
1362: Headers to add for HTTP requests; table with header names as
@@ -1414,7 +1364,7 @@ available to readers and writers.
1415`resource_path`
1365`resource_path`
1416: Path to search for resources like included images
1366: Path to search for resources like included images
1417− ([List](#module-pandoc.list) of strings)
1367+ ([List] of strings)
1419`source_url`
1369`source_url`
1420: Absolute URL or directory of first source file (string or
1370: Absolute URL or directory of first source file (string or
@@ -1429,12 +1379,23 @@ available to readers and writers.
1429`verbosity`
1379`verbosity`
1430: Verbosity level; one of `INFO`, `WARNING`, `ERROR` (string)
1380: Verbosity level; one of `INFO`, `WARNING`, `ERROR` (string)
1432−## LogMessage {#type-ref-LogMessage}
1382+## List {#type-list}
1384+A list is any Lua table with integer indices. Indices start at
1385+one, so if `alist = {'value'}` then `alist[1] == 'value'`.
1387+Lists, when part of an element, or when generated during
1388+marshalling, are made instances of the `pandoc.List` type for
1389+convenience. The `pandoc.List` type is defined in the
1390+[*pandoc.List*](#module-pandoc.list) module. See there for
1393+## LogMessage {#type-logmessage}
1434−A pandoc log message. Object have no fields, but can be
1395+A pandoc log message. Objects have no fields, but can be
1435converted to a string via `tostring`.
1396converted to a string via `tostring`.
1437−## Version {#type-ref-Version}
1398+## Version {#type-version}
1439A version object. This represents a software version like
1400A version object. This represents a software version like
1440"2.7.3". The object behaves like a numerically indexed table,
1401"2.7.3". The object behaves like a numerically indexed table,
@@ -1460,10 +1421,10 @@ than the expected version.
1460Parameters:
1421Parameters:
1463−: actual version specifier ([Version](#type-ref-Version))
1424+: actual version specifier ([Version])
1465`expected`
1426`expected`
1466−: minimum expected version ([Version](#type-ref-Version))
1427+: minimum expected version ([Version])
1468`error_message`
1429`error_message`
1469: optional error message template. The string is used as
1430: optional error message template. The string is used as
@@ -1479,6 +1440,26 @@ Usage:
1479 'pandoc-types is too old: expected version %s, got %s'
1440 'pandoc-types is too old: expected version %s, got %s'
1443+[Alignment]: #type-alignment
1445+[Attributes]: #type-attributes
1446+[Block]: #type-block
1447+[Blocks]: #type-block
1448+[Citation]: #type-citation
1449+[Citations]: #type-citation
1450+[CommonState]: #type-commonstate
1451+[Inline]: #type-inline
1452+[Inlines]: #type-inline
1454+[ListAttributes]: #type-listattributes
1456+[MetaValue]: #type-metavalue
1457+[MetaValues]: #type-metavalue
1458+[LogMessage]: #type-logmessage
1459+[Pandoc]: #type-pandoc
1460+[Version]: #type-version
1461+[`pandoc.utils.equals`]: #pandoc.utils.equals
1482# Module text
1463# Module text
1484UTF-8 aware text manipulation functions, implemented in Haskell.
1465UTF-8 aware text manipulation functions, implemented in Haskell.
@@ -1494,31 +1475,31 @@ function Str (s)
1497−### lower {#text-lower}
1478+### lower {#text.lower}
1499`lower (s)`
1480`lower (s)`
1501Returns a copy of a UTF-8 string, converted to lowercase.
1482Returns a copy of a UTF-8 string, converted to lowercase.
1503−### upper {#text-upper}
1484+### upper {#text.upper}
1505`upper (s)`
1486`upper (s)`
1507Returns a copy of a UTF-8 string, converted to uppercase.
1488Returns a copy of a UTF-8 string, converted to uppercase.
1509−### reverse {#text-reverse}
1490+### reverse {#text.reverse}
1511`reverse (s)`
1492`reverse (s)`
1513Returns a copy of a UTF-8 string, with characters reversed.
1494Returns a copy of a UTF-8 string, with characters reversed.
1515−### len {#text-len}
1496+### len {#text.len}
1517`len (s)`
1498`len (s)`
1519Returns the length of a UTF-8 string.
1500Returns the length of a UTF-8 string.
1521−### sub {#text-sub}
1502+### sub {#text.sub}
1523`sub (s)`
1504`sub (s)`
@@ -1527,11 +1508,13 @@ indexing rules.
1528# Module pandoc
1509# Module pandoc
1530−Lua functions for pandoc scripts.
1511+Lua functions for pandoc scripts; includes constructors for
1512+document tree elements, functions to parse text in a given
1513+format, and functions to filter and modify a subtree.
1532−## Pandoc Document
1515+## Pandoc
1534−[`Pandoc (blocks[, meta])`]{#Pandoc}
1517+[`Pandoc (blocks[, meta])`]{#pandoc.pandoc}
1536: A complete pandoc document
1519: A complete pandoc document
@@ -1543,9 +1526,9 @@ Lua functions for pandoc scripts.
1544 : document meta data
1527 : document meta data
1546−## Meta {#meta}
1529+## Meta
1548−[`Meta (table)`]{#Meta}
1531+[`Meta (table)`]{#pando.meta}
1550: Create a new Meta object.
1533: Create a new Meta object.
@@ -1554,9 +1537,9 @@ Lua functions for pandoc scripts.
1554 `table`:
1537 `table`:
1555 : table containing document meta information
1538 : table containing document meta information
1557−## MetaValue {#metavalue}
1540+## MetaValue
1559−[`MetaBlocks (blocks)`]{#MetaBlocks}
1542+[`MetaBlocks (blocks)`]{#pandoc.metablocks}
1561: Meta blocks
1544: Meta blocks
@@ -1565,7 +1548,7 @@ Lua functions for pandoc scripts.
1565 `blocks`:
1548 `blocks`:
1566 : blocks
1549 : blocks
1568−[`MetaInlines (inlines)`]{#MetaInlines}
1551+[`MetaInlines (inlines)`]{#pandoc.metainlines}
1570: Meta inlines
1553: Meta inlines
@@ -1574,7 +1557,7 @@ Lua functions for pandoc scripts.
1574 `inlines`:
1557 `inlines`:
1575 : inlines
1558 : inlines
1577−[`MetaList (meta_values)`]{#MetaList}
1560+[`MetaList (meta_values)`]{#pandoc.metalist}
1579: Meta list
1562: Meta list
@@ -1583,7 +1566,7 @@ Lua functions for pandoc scripts.
1583 `meta_values`:
1566 `meta_values`:
1584 : list of meta values
1567 : list of meta values
1586−[`MetaMap (key_value_map)`]{#MetaMap}
1569+[`MetaMap (key_value_map)`]{#pandoc.metamap}
1588: Meta map
1571: Meta map
@@ -1592,7 +1575,7 @@ Lua functions for pandoc scripts.
1592 `key_value_map`:
1575 `key_value_map`:
1593 : a string-indexed map of meta values
1576 : a string-indexed map of meta values
1595−[`MetaString (str)`]{#MetaString}
1578+[`MetaString (str)`]{#pandoc.metastring}
1597: Creates string to be used in meta data.
1580: Creates string to be used in meta data.
@@ -1601,7 +1584,7 @@ Lua functions for pandoc scripts.
1602 : string value
1585 : string value
1604−[`MetaBool (bool)`]{#MetaBool}
1587+[`MetaBool (bool)`]{#pandoc.metabool}
1606: Creates boolean to be used in meta data.
1589: Creates boolean to be used in meta data.
@@ -1612,11 +1595,7 @@ Lua functions for pandoc scripts.
1613## Blocks
1596## Blocks
1619−[`BlockQuote (content)`]{#BlockQuote}
1598+[`BlockQuote (content)`]{#pandoc.blockquote}
1621: Creates a block quote element
1600: Creates a block quote element
@@ -1627,7 +1606,7 @@ Lua functions for pandoc scripts.
1628 Returns: block quote element
1607 Returns: block quote element
1630−[`BulletList (content)`]{#BulletList}
1609+[`BulletList (content)`]{#pandoc.bulletlist}
1632: Creates a bullet (i.e.
1611: Creates a bullet (i.e.
@@ -1638,7 +1617,7 @@ Lua functions for pandoc scripts.
1639 Returns: bullet list element
1618 Returns: bullet list element
1641−[`CodeBlock (text[, attr])`]{#CodeBlock}
1620+[`CodeBlock (text[, attr])`]{#pandoc.codeblock}
1643: Creates a code block element
1622: Creates a code block element
@@ -1652,7 +1631,7 @@ Lua functions for pandoc scripts.
1653 Returns: code block element
1632 Returns: code block element
1655−[`DefinitionList (content)`]{#DefinitionList}
1634+[`DefinitionList (content)`]{#pandoc.definitionlist}
1657: Creates a definition list, containing terms and their
1636: Creates a definition list, containing terms and their
1658 explanation.
1637 explanation.
@@ -1664,7 +1643,7 @@ Lua functions for pandoc scripts.
1665 Returns: definition list element
1644 Returns: definition list element
1667−[`Div (content[, attr])`]{#Div}
1646+[`Div (content[, attr])`]{#pandoc.div}
1669: Creates a div element
1648: Creates a div element
@@ -1678,7 +1657,7 @@ Lua functions for pandoc scripts.
1679 Returns: div element
1658 Returns: div element
1681−[`Header (level, content[, attr])`]{#Header}
1660+[`Header (level, content[, attr])`]{#pandoc.header}
1683: Creates a header element.
1662: Creates a header element.
@@ -1695,13 +1674,13 @@ Lua functions for pandoc scripts.
1696 Returns: header element
1675 Returns: header element
1698−[`HorizontalRule ()`]{#HorizontalRule}
1677+[`HorizontalRule ()`]{#pandoc.horizontalrule}
1700: Creates a horizontal rule.
1679: Creates a horizontal rule.
1702 Returns: horizontal rule
1681 Returns: horizontal rule
1704−[`LineBlock (content)`]{#LineBlock}
1683+[`LineBlock (content)`]{#pandoc.lineblock}
1706: Creates a line block element.
1685: Creates a line block element.
@@ -1712,13 +1691,13 @@ Lua functions for pandoc scripts.
1713 Returns: line block element
1692 Returns: line block element
1715−[`Null ()`]{#Null}
1694+[`Null ()`]{#pandoc.null}
1717: Creates a null element.
1696: Creates a null element.
1719 Returns: null element
1698 Returns: null element
1721−[`OrderedList (items[, listAttributes])`]{#OrderedList}
1700+[`OrderedList (items[, listAttributes])`]{#pandoc.orderedlist}
1723: Creates an ordered list.
1702: Creates an ordered list.
@@ -1732,7 +1711,7 @@ Lua functions for pandoc scripts.
1733 Returns: ordered list element
1712 Returns: ordered list element
1735−[`Para (content)`]{#Para}
1714+[`Para (content)`]{#pandoc.para}
1737: Creates a para element.
1716: Creates a para element.
@@ -1743,7 +1722,7 @@ Lua functions for pandoc scripts.
1744 Returns: paragraph element
1723 Returns: paragraph element
1746−[`Plain (content)`]{#Plain}
1725+[`Plain (content)`]{#pandoc.plain}
1748: Creates a plain element.
1727: Creates a plain element.
@@ -1754,7 +1733,7 @@ Lua functions for pandoc scripts.
1755 Returns: plain element
1734 Returns: plain element
1757−[`RawBlock (format, text)`]{#RawBlock}
1736+[`RawBlock (format, text)`]{#pandoc.rawblock}
1759: Creates a raw content block of the specified format.
1738: Creates a raw content block of the specified format.
@@ -1768,7 +1747,7 @@ Lua functions for pandoc scripts.
1769 Returns: raw block element
1748 Returns: raw block element
1771−[`Table (caption, aligns, widths, headers, rows)`]{#Table}
1750+[`Table (caption, aligns, widths, headers, rows)`]{#pandoc.table}
1773: Creates a table element.
1752: Creates a table element.
@@ -1791,13 +1770,9 @@ Lua functions for pandoc scripts.
1792 Returns: table element
1771 Returns: table element
1794−## Inline {#inline}
1773+## Inline
1798−: Inline element class
1800−[`Cite (content, citations)`]{#Cite}
1775+[`Cite (content, citations)`]{#pandoc.cite}
1802: Creates a Cite inline element
1777: Creates a Cite inline element
@@ -1811,7 +1786,7 @@ Lua functions for pandoc scripts.
1812 Returns: citations element
1787 Returns: citations element
1814−[`Code (text[, attr])`]{#Code}
1789+[`Code (text[, attr])`]{#pandoc.code}
1816: Creates a Code inline element
1791: Creates a Code inline element
@@ -1825,7 +1800,7 @@ Lua functions for pandoc scripts.
1826 Returns: code element
1801 Returns: code element
1828−[`Emph (content)`]{#Emph}
1803+[`Emph (content)`]{#pandoc.emph}
1830: Creates an inline element representing emphasised text.
1805: Creates an inline element representing emphasised text.
@@ -1836,7 +1811,7 @@ Lua functions for pandoc scripts.
1837 Returns: emphasis element
1812 Returns: emphasis element
1839−[`Image (caption, src[, title[, attr]])`]{#Image}
1814+[`Image (caption, src[, title[, attr]])`]{#pandoc.image}
1841: Creates a Image inline element
1816: Creates a Image inline element
@@ -1856,13 +1831,13 @@ Lua functions for pandoc scripts.
1857 Returns: image element
1832 Returns: image element
1859−[`LineBreak ()`]{#LineBreak}
1834+[`LineBreak ()`]{#pandoc.linebreak}
1861: Create a LineBreak inline element
1836: Create a LineBreak inline element
1863 Returns: linebreak element
1838 Returns: linebreak element
1865−[`Link (content, target[, title[, attr]])`]{#Link}
1840+[`Link (content, target[, title[, attr]])`]{#pandoc.link}
1867: Creates a link inline element, usually a hyperlink.
1842: Creates a link inline element, usually a hyperlink.
@@ -1882,7 +1857,7 @@ Lua functions for pandoc scripts.
1883 Returns: image element
1858 Returns: image element
1885−[`Math (mathtype, text)`]{#Math}
1860+[`Math (mathtype, text)`]{#pandoc.math}
1887: Creates a Math element, either inline or displayed.
1862: Creates a Math element, either inline or displayed.
@@ -1896,7 +1871,7 @@ Lua functions for pandoc scripts.
1897 Returns: Math element
1872 Returns: Math element
1899−[`DisplayMath (text)`]{#DisplayMath}
1874+[`DisplayMath (text)`]{#pandoc.displaymath}
1901: Creates a DisplayMath element (DEPRECATED).
1876: Creates a DisplayMath element (DEPRECATED).
@@ -1907,7 +1882,7 @@ Lua functions for pandoc scripts.
1908 Returns: Math element
1883 Returns: Math element
1910−[`InlineMath (text)`]{#InlineMath}
1885+[`InlineMath (text)`]{#pandoc.inlinemath}
1912: Creates an InlineMath inline element (DEPRECATED).
1887: Creates an InlineMath inline element (DEPRECATED).
@@ -1918,7 +1893,7 @@ Lua functions for pandoc scripts.
1919 Returns: Math element
1894 Returns: Math element
1921−[`Note (content)`]{#Note}
1896+[`Note (content)`]{#pandoc.note}
1923: Creates a Note inline element
1898: Creates a Note inline element
@@ -1927,7 +1902,7 @@ Lua functions for pandoc scripts.
1927 `content`:
1902 `content`:
1928 : footnote block content
1903 : footnote block content
1930−[`Quoted (quotetype, content)`]{#Quoted}
1905+[`Quoted (quotetype, content)`]{#pandoc.quoted}
1932: Creates a Quoted inline element given the quote type and
1907: Creates a Quoted inline element given the quote type and
1933 quoted content.
1908 quoted content.
@@ -1942,7 +1917,7 @@ Lua functions for pandoc scripts.
1943 Returns: quoted element
1918 Returns: quoted element
1945−[`SingleQuoted (content)`]{#SingleQuoted}
1920+[`SingleQuoted (content)`]{#pandoc.singlequoted}
1947: Creates a single-quoted inline element (DEPRECATED).
1922: Creates a single-quoted inline element (DEPRECATED).
@@ -1953,9 +1928,9 @@ Lua functions for pandoc scripts.
1954 Returns: quoted element
1929 Returns: quoted element
1956− See also: [Quoted](#Quoted)
1931+ See also: [Quoted](#type-quoted)
1958−[`DoubleQuoted (content)`]{#DoubleQuoted}
1933+[`DoubleQuoted (content)`]{#pandoc.doublequoted}
1960: Creates a single-quoted inline element (DEPRECATED).
1935: Creates a single-quoted inline element (DEPRECATED).
@@ -1966,9 +1941,9 @@ Lua functions for pandoc scripts.
1967 Returns: quoted element
1942 Returns: quoted element
1969− See also: [Quoted](#Quoted)
1944+ See also: [Quoted](#type-quoted)
1971−[`RawInline (format, text)`]{#RawInline}
1946+[`RawInline (format, text)`]{#pandoc.rawinline}
1973: Creates a RawInline inline element
1948: Creates a RawInline inline element
@@ -1982,7 +1957,7 @@ Lua functions for pandoc scripts.
1983 Returns: raw inline element
1958 Returns: raw inline element
1985−[`SmallCaps (content)`]{#SmallCaps}
1960+[`SmallCaps (content)`]{#pandoc.smallcaps}
1987: Creates text rendered in small caps
1962: Creates text rendered in small caps
@@ -1993,19 +1968,19 @@ Lua functions for pandoc scripts.
1994 Returns: smallcaps element
1969 Returns: smallcaps element
1996−[`SoftBreak ()`]{#SoftBreak}
1971+[`SoftBreak ()`]{#pandoc.softbreak}
1998: Creates a SoftBreak inline element.
1973: Creates a SoftBreak inline element.
2000 Returns: softbreak element
1975 Returns: softbreak element
2002−[`Space ()`]{#Space}
1977+[`Space ()`]{#pandoc.space}
2004: Create a Space inline element
1979: Create a Space inline element
2006 Returns: space element
1981 Returns: space element
2008−[`Span (content[, attr])`]{#Span}
1983+[`Span (content[, attr])`]{#pandoc.span}
2010: Creates a Span inline element
1985: Creates a Span inline element
@@ -2019,7 +1994,7 @@ Lua functions for pandoc scripts.
2020 Returns: span element
1995 Returns: span element
2022−[`Str (text)`]{#Str}
1997+[`Str (text)`]{#pandoc.str}
2024: Creates a Str inline element
1999: Creates a Str inline element
@@ -2030,7 +2005,7 @@ Lua functions for pandoc scripts.
2031 Returns: string element
2006 Returns: string element
2033−[`Strikeout (content)`]{#Strikeout}
2008+[`Strikeout (content)`]{#pandoc.strikeout}
2035: Creates text which is striked out.
2010: Creates text which is striked out.
@@ -2041,7 +2016,7 @@ Lua functions for pandoc scripts.
2042 Returns: strikeout element
2017 Returns: strikeout element
2044−[`Strong (content)`]{#Strong}
2019+[`Strong (content)`]{#pandoc.strong}
2046: Creates a Strong element, whose text is usually displayed in
2021: Creates a Strong element, whose text is usually displayed in
2047 a bold font.
2022 a bold font.
@@ -2053,7 +2028,7 @@ Lua functions for pandoc scripts.
2054 Returns: strong element
2029 Returns: strong element
2056−[`Subscript (content)`]{#Subscript}
2031+[`Subscript (content)`]{#pandoc.subscript}
2058: Creates a Subscript inline element
2033: Creates a Subscript inline element
@@ -2064,7 +2039,7 @@ Lua functions for pandoc scripts.
2065 Returns: subscript element
2040 Returns: subscript element
2067−[`Superscript (content)`]{#Superscript}
2042+[`Superscript (content)`]{#pandoc.superscript}
2069: Creates a Superscript inline element
2044: Creates a Superscript inline element
@@ -2075,9 +2050,9 @@ Lua functions for pandoc scripts.
2076 Returns: strong element
2051 Returns: strong element
2078−## Element components {#element-components-create}
2053+## Element components
2080−[`Attr ([identifier[, classes[, attributes]]])`]{#Attr}
2055+[`Attr ([identifier[, classes[, attributes]]])`]{#pandoc.attr}
2082: Create a new set of attributes (Attr).
2057: Create a new set of attributes (Attr).
@@ -2094,7 +2069,7 @@ Lua functions for pandoc scripts.
2095 Returns: element attributes
2070 Returns: element attributes
2097−[`Citation (id, mode[, prefix[, suffix[, note_num[, hash]]]])`]{#Citation}
2072+[`Citation (id, mode[, prefix[, suffix[, note_num[, hash]]]])`]{#pandoc.citation}
2099: Creates a single citation.
2074: Creates a single citation.
@@ -2118,7 +2093,7 @@ Lua functions for pandoc scripts.
2119 : hash number
2094 : hash number
2121−[`ListAttributes ([start[, style[, delimiter]]])`]{#ListAttributes}
2096+[`ListAttributes ([start[, style[, delimiter]]])`]{#pandoc.listattributes}
2123: Creates a set of list attributes.
2098: Creates a set of list attributes.
@@ -2137,121 +2112,121 @@ Lua functions for pandoc scripts.
2138## Constants
2113## Constants
2140−[`AuthorInText`]{#AuthorInText}
2115+[`AuthorInText`]{#pandoc.authorintext}
2142: Author name is mentioned in the text.
2117: Author name is mentioned in the text.
2144− See also: [Citation](#Citation)
2119+ See also: [Citation](#type-citation)
2146−[`SuppressAuthor`]{#SuppressAuthor}
2121+[`SuppressAuthor`]{#pandoc.suppressauthor}
2148: Author name is suppressed.
2123: Author name is suppressed.
2150− See also: [Citation](#Citation)
2125+ See also: [Citation](#type-citation)
2152−[`NormalCitation`]{#NormalCitation}
2127+[`NormalCitation`]{#pandoc.normalcitation}
2154: Default citation style is used.
2129: Default citation style is used.
2156− See also: [Citation](#Citation)
2131+ See also: [Citation](#type-citation)
2158−[`AlignLeft`]{#AlignLeft}
2133+[`AlignLeft`]{#pandoc.alignleft}
2160: Table cells aligned left.
2135: Table cells aligned left.
2162− See also: [Table](#Table)
2137+ See also: [Table](#type-alignment)
2164−[`AlignRight`]{#AlignRight}
2139+[`AlignRight`]{#pandoc.alignright}
2166: Table cells right-aligned.
2141: Table cells right-aligned.
2168− See also: [Table](#Table)
2143+ See also: [Table](#type-alignment)
2170−[`AlignCenter`]{#AlignCenter}
2145+[`AlignCenter`]{#pandoc.aligncenter}
2172: Table cell content is centered.
2147: Table cell content is centered.
2174− See also: [Table](#Table)
2149+ See also: [Table](#type-alignment)
2176−[`AlignDefault`]{#AlignDefault}
2151+[`AlignDefault`]{#pandoc.aligndefault}
2178: Table cells are alignment is unaltered.
2153: Table cells are alignment is unaltered.
2180− See also: [Table](#Table)
2155+ See also: [Table](#type-alignment)
2182−[`DefaultDelim`]{#DefaultDelim}
2157+[`DefaultDelim`]{#pandoc.defaultdelim}
2184: Default list number delimiters are used.
2159: Default list number delimiters are used.
2186− See also: [OrderedList](#OrderedList)
2161+ See also: [ListAttributes](#type-listattributes)
2188−[`Period`]{#Period}
2163+[`Period`]{#pandoc.period}
2190: List numbers are delimited by a period.
2165: List numbers are delimited by a period.
2192− See also: [OrderedList](#OrderedList)
2167+ See also: [ListAttributes](#type-listattributes)
2194−[`OneParen`]{#OneParen}
2169+[`OneParen`]{#pandoc.oneparen}
2196: List numbers are delimited by a single parenthesis.
2171: List numbers are delimited by a single parenthesis.
2198− See also: [OrderedList](#OrderedList)
2173+ See also: [ListAttributes](#type-listattributes)
2200−[`TwoParens`]{#TwoParens}
2175+[`TwoParens`]{#pandoc.twoparens}
2202: List numbers are delimited by a double parentheses.
2177: List numbers are delimited by a double parentheses.
2204− See also: [OrderedList](#OrderedList)
2179+ See also: [ListAttributes](#type-listattributes)
2206−[`DefaultStyle`]{#DefaultStyle}
2181+[`DefaultStyle`]{#pandoc.defaultstyle}
2208: List are numbered in the default style
2183: List are numbered in the default style
2210− See also: [OrderedList](#OrderedList)
2185+ See also: [ListAttributes](#type-listattributes)
2212−[`Example`]{#Example}
2187+[`Example`]{#pandoc.example}
2214: List items are numbered as examples.
2189: List items are numbered as examples.
2216− See also: [OrderedList](#OrderedList)
2191+ See also: [ListAttributes](#type-listattributes)
2218−[`Decimal`]{#Decimal}
2193+[`Decimal`]{#pandoc.decimal}
2220: List are numbered using decimal integers.
2195: List are numbered using decimal integers.
2222− See also: [OrderedList](#OrderedList)
2197+ See also: [ListAttributes](#type-listattributes)
2224−[`LowerRoman`]{#LowerRoman}
2199+[`LowerRoman`]{#pandoc.lowerroman}
2226: List are numbered using lower-case roman numerals.
2201: List are numbered using lower-case roman numerals.
2228− See also: [OrderedList](#OrderedList)
2203+ See also: [ListAttributes](#type-listattributes)
2230−[`UpperRoman`]{#UpperRoman}
2205+[`UpperRoman`]{#pandoc.upperroman}
2232: List are numbered using upper-case roman numerals
2207: List are numbered using upper-case roman numerals
2234− See also: [OrderedList](#OrderedList)
2209+ See also: [ListAttributes](#type-listattributes)
2236−[`LowerAlpha`]{#LowerAlpha}
2211+[`LowerAlpha`]{#pandoc.loweralpha}
2238: List are numbered using lower-case alphabetic characters.
2213: List are numbered using lower-case alphabetic characters.
2240− See also: [OrderedList](#OrderedList)
2215+ See also: [ListAttributes](#type-listattributes)
2242−[`UpperAlpha`]{#UpperAlpha}
2217+[`UpperAlpha`]{#pandoc.upperalpha}
2244: List are numbered using upper-case alphabetic characters.
2219: List are numbered using upper-case alphabetic characters.
2246− See also: [OrderedList](#OrderedList)
2221+ See also: [ListAttributes](#type-listattributes)
2248−[`sha1`]{#sha1}
2223+[`sha1`]{#pandoc.sha1}
2250: Functions which have moved to different modules
2225: Functions which have moved to different modules
2252## Helper functions
2227## Helper functions
2254−### pipe
2229+### pipe {#pandoc.pipe}
2256`pipe (command, args, input)`
2231`pipe (command, args, input)`
@@ -2272,7 +2247,7 @@ Usage:
2273 local output = pandoc.pipe("sed", {"-e","s/a/b/"}, "abc")
2248 local output = pandoc.pipe("sed", {"-e","s/a/b/"}, "abc")
2275−### walk\_block
2250+### walk\_block {#pandoc.walk_block}
2277`walk_block (element, filter)`
2252`walk_block (element, filter)`
@@ -2289,7 +2264,7 @@ Parameters:
2290Returns: the transformed block element
2265Returns: the transformed block element
2292−### walk\_inline
2267+### walk\_inline {#pandoc.walk_inline}
2294`walk_inline (element, filter)`
2269`walk_inline (element, filter)`
@@ -2306,7 +2281,7 @@ Parameters:
2307Returns: the transformed inline element
2282Returns: the transformed inline element
2309−### read
2284+### read {#pandoc.read}
2311`read (markup[, format])`
2286`read (markup[, format])`
@@ -2340,11 +2315,11 @@ The module is loaded as part of the `pandoc` module and
2340available as `pandoc.utils`. In versions up-to and including
2315available as `pandoc.utils`. In versions up-to and including
2341pandoc 2.6, this module had to be loaded explicitly. Example:
2316pandoc 2.6, this module had to be loaded explicitly. Example:
2343− local utils = require 'pandoc.utils'
2318+ pandoc.utils = require 'pandoc.utils'
2345−Use this for backwards compatibility.
2320+Use the above for backwards compatibility.
2347−### blocks\_to\_inlines {#utils-blocks_to_inlines}
2322+### blocks\_to\_inlines {#pandoc.utils.blocks_to_inlines}
2349`blocks_to_inlines (blocks[, sep])`
2324`blocks_to_inlines (blocks[, sep])`
@@ -2353,16 +2328,16 @@ Squash a list of blocks into a list of inlines.
2353Parameters:
2328Parameters:
2355`blocks`:
2330`blocks`:
2356−: List of [Blocks](#Blocks) to be flattened.
2331+: List of [Blocks](#type-block) to be flattened.
2359−: List of [Inlines](#Inlines) inserted as separator between
2334+: List of [Inlines](#type-inline) inserted as separator between
2360 two consecutive blocks; defaults to
2335 two consecutive blocks; defaults to
2361 `{ pandoc.Space(), pandoc.Str'¶', pandoc.Space()}`.
2336 `{ pandoc.Space(), pandoc.Str'¶', pandoc.Space()}`.
2365−- List of [Inlines](#Inlines)
2340+- [List](#type-list) of [Inlines](#type-inline)
@@ -2377,7 +2352,7 @@ Usage:
2377 -- pandoc.Emph{ pandoc.Str 'Paragraph2' }
2352 -- pandoc.Emph{ pandoc.Str 'Paragraph2' }
2380−### equals {#utils-equals}
2355+### equals {#pandoc.utils.equals}
2382`equals (element1, element2)`
2357`equals (element1, element2)`
@@ -2388,22 +2363,19 @@ equal.
2388Parameters:
2363Parameters:
2390`element1`, `element2`:
2365`element1`, `element2`:
2391−: Objects to be compared. Acceptable input types are
2366+: Objects to be compared. Acceptable input types are [Pandoc],
2392− [Pandoc](#type-ref-pandoc), [Meta](#type-ref-meta),
2393− [MetaValue](#type-ref-MetaValue), [Block](#type-ref-Block),
2367+ [Meta], [MetaValue], [Block], [Inline], [Attr],
2394− [Inline](#type-ref-Inline), [Attr](#type-ref-Attr),
2395− [ListAttributes](#type-ref-ListAttributes), and
2368+ [ListAttributes], and [Citation].
2396− [Citation](#type-ref-Citation).
2400- Whether the two objects represent the same element (boolean)
2372- Whether the two objects represent the same element (boolean)
2402−### make\_sections {#utils-make_sections}
2374+### make\_sections {#pandoc.utils.make_sections}
2404`make_sections (number_sections, base_level, blocks)`
2376`make_sections (number_sections, base_level, blocks)`
2406−Converst list of [Blocks](#Blocks) into sections.
2378+Converst list of [Blocks](#type-block) into sections.
2407`Div`s will be created beginning at each `Header`
2379`Div`s will be created beginning at each `Header`
2408and containing following content until the next `Header`
2380and containing following content until the next `Header`
2409of comparable level. If `number_sections` is true,
2381of comparable level. If `number_sections` is true,
@@ -2415,7 +2387,7 @@ is the level specified.
2418−- List of [Blocks](#Blocks).
2390+- List of [Blocks](#type-block).
@@ -2425,7 +2397,7 @@ Usage:
2426 local newblocks = pandoc.utils.make_sections(true, 1, blocks)
2398 local newblocks = pandoc.utils.make_sections(true, 1, blocks)
2428−### run\_json\_filter {#utils-run_json_filter}
2400+### run\_json\_filter {#pandoc.utils.run_json_filter}
2430`run_json_filter (doc, filter[, args])`
2402`run_json_filter (doc, filter[, args])`
@@ -2445,7 +2417,7 @@ Parameters:
2448−- ([Pandoc](#Pandoc)) Filtered document
2420+- ([Pandoc](#type-pandoc)) Filtered document
@@ -2458,7 +2430,7 @@ Usage:
2459 some_blocks = sub_doc.blocks -- some blocks with bib
2431 some_blocks = sub_doc.blocks -- some blocks with bib
2461−### normalize\_date {#utils-normalize_date}
2433+### normalize\_date {#pandoc.utils.normalize_date}
2463`normalize_date (date_string)`
2435`normalize_date (date_string)`
@@ -2471,7 +2443,7 @@ Returns:
2472- A date string, or nil when the conversion failed.
2444- A date string, or nil when the conversion failed.
2474−### sha1 {#utils-sha1}
2446+### sha1 {#pandoc.utils.sha1}
2476`sha1 (contents)`
2448`sha1 (contents)`
@@ -2485,7 +2457,7 @@ Usage:
2486 local fp = pandoc.utils.sha1("foobar")
2458 local fp = pandoc.utils.sha1("foobar")
2488−### stringify {#utils-stringify}
2460+### stringify {#pandoc.utils.stringify}
2490`stringify (element)`
2462`stringify (element)`
@@ -2502,7 +2474,7 @@ Usage:
2502 -- outputs "Moin"
2474 -- outputs "Moin"
2503 print(pandoc.utils.stringify(inline))
2475 print(pandoc.utils.stringify(inline))
2505−### to\_roman\_numeral {#utils-to_roman_numeral}
2477+### to\_roman\_numeral {#pandoc.utils.to_roman_numeral}
2507`to_roman_numeral (integer)`
2479`to_roman_numeral (integer)`
@@ -2530,7 +2502,7 @@ required, e.g.:
2531 local mb = require 'pandoc.mediabag'
2503 local mb = require 'pandoc.mediabag'
2533−### delete {#mediabag-delete}
2505+### delete {#pandoc.mediabag.delete}
2535`delete (filepath)`
2507`delete (filepath)`
@@ -2542,13 +2514,13 @@ Parameters:
2542: filename of the item to be deleted. The media bag will be
2514: filename of the item to be deleted. The media bag will be
2543 left unchanged if no entry with the given filename exists.
2515 left unchanged if no entry with the given filename exists.
2545−### empty {#mediabag-empty}
2517+### empty {#pandoc.mediabag.empty}
2547`empty ()`
2519`empty ()`
2549Clear-out the media bag, deleting all items.
2521Clear-out the media bag, deleting all items.
2551−### insert {#mediabag-insert}
2523+### insert {#pandoc.mediabag.insert}
2553`insert (filepath, mime_type, contents)`
2525`insert (filepath, mime_type, contents)`
@@ -2572,7 +2544,7 @@ Usage:
2572 local contents = "Hello, World!"
2544 local contents = "Hello, World!"
2573 pandoc.mediabag.insert(fp, mt, contents)
2545 pandoc.mediabag.insert(fp, mt, contents)
2575−### items {#mediabag-items}
2547+### items {#pandoc.mediabag.items}
2577`items ()`
2549`items ()`
@@ -2583,7 +2555,7 @@ processed one-by-one to avoid excessive memory use.
2584This function should be used only when full access to all items,
2556This function should be used only when full access to all items,
2585including their contents, is required. For all other cases,
2557including their contents, is required. For all other cases,
2586−[`list`](#mediabag-list) should be preferred.
2558+[`list`](#pandoc.mediabag.list) should be preferred.
@@ -2599,7 +2571,7 @@ Usage:
2599 -- print(fp, mt, contents)
2571 -- print(fp, mt, contents)
2602−### list {#mediabag-list}
2574+### list {#pandoc.mediabag.list}
2604`list ()`
2576`list ()`
@@ -2620,7 +2592,7 @@ Usage:
2621 print(sum)
2593 print(sum)
2623−### lookup {#mediabag-lookup}
2595+### lookup {#pandoc.mediabag.lookup}
2625`lookup (filepath)`
2597`lookup (filepath)`
@@ -2642,7 +2614,7 @@ Usage:
2642 local filename = "media/diagram.png"
2614 local filename = "media/diagram.png"
2643 local mt, contents = pandoc.mediabag.lookup(filename)
2615 local mt, contents = pandoc.mediabag.lookup(filename)
2645−### fetch {#mediabag-fetch}
2617+### fetch {#pandoc.mediabag.fetch}
2647`fetch (source, base_url)`
2619`fetch (source, base_url)`
@@ -2667,7 +2639,7 @@ methods and convenience functions.
2668## Constructor
2640## Constructor
2670−[`pandoc.List([table])`]{#pandoc.List}
2642+[`pandoc.List([table])`]{#pandoc.list}
2672: Create a new List. If the optional argument `table` is given,
2644: Create a new List. If the optional argument `table` is given,
2673 set the metatable of that value to `pandoc.List`. This is an
2645 set the metatable of that value to `pandoc.List`. This is an
@@ -2675,7 +2647,7 @@ methods and convenience functions.
2676## Metamethods
2648## Metamethods
2678−[`pandoc.List:__concat (list)`]{#pandoc.List:__concat}
2650+[`pandoc.List:__concat (list)`]{#pandoc.list:__concat}
2680: Concatenates two lists.
2652: Concatenates two lists.
@@ -2689,11 +2661,11 @@ methods and convenience functions.
2690## Methods
2662## Methods
2692−[`pandoc.List:clone ()`]{#pandoc.List:clone}
2664+[`pandoc.List:clone ()`]{#pandoc.list:clone}
2694: Returns a (shallow) copy of the list.
2666: Returns a (shallow) copy of the list.
2696−[`pandoc.List:new([table])`]{#pandoc.List:new}
2668+[`pandoc.List:new([table])`]{#pandoc.list:new}
2698: Create a new List. If the optional argument `table` is given,
2670: Create a new List. If the optional argument `table` is given,
2699 set the metatable of that value to `pandoc.List`.
2671 set the metatable of that value to `pandoc.List`.
@@ -2706,7 +2678,7 @@ methods and convenience functions.
2707 Returns: the updated input value
2679 Returns: the updated input value
2709−[`pandoc.List:includes (needle, init)`]{#pandoc.List:includes}
2681+[`pandoc.List:includes (needle, init)`]{#pandoc.list:includes}
2711: Checks if the list has an item equal to the given needle.
2683: Checks if the list has an item equal to the given needle.
@@ -2721,7 +2693,7 @@ methods and convenience functions.
2721 Returns: true if a list item is equal to the needle, false
2693 Returns: true if a list item is equal to the needle, false
2722 otherwise
2694 otherwise
2724−[`pandoc.List:find (needle, init)`]{#pandoc.List:find}
2696+[`pandoc.List:find (needle, init)`]{#pandoc.list:find}
2726: Returns the value and index of the first occurrence of the
2698: Returns the value and index of the first occurrence of the
2727 given item.
2699 given item.
@@ -2737,7 +2709,7 @@ methods and convenience functions.
2737 Returns: first item equal to the needle, or nil if no such
2709 Returns: first item equal to the needle, or nil if no such
2738 item exists.
2710 item exists.
2740−[`pandoc.List:find_if (pred, init)`]{#pandoc.List:find_if}
2712+[`pandoc.List:find_if (pred, init)`]{#pandoc.list:find_if}
2742: Returns the value and index of the first element for which
2714: Returns the value and index of the first element for which
2743 the predicate holds true.
2715 the predicate holds true.
@@ -2753,7 +2725,7 @@ methods and convenience functions.
2753 Returns: first item for which \`test\` succeeds, or nil if
2725 Returns: first item for which \`test\` succeeds, or nil if
2754 no such item exists.
2726 no such item exists.
2756−[`pandoc.List:extend (list)`]{#pandoc.List:extend}
2728+[`pandoc.List:extend (list)`]{#pandoc.list:extend}
2758: Adds the given list to the end of this list.
2730: Adds the given list to the end of this list.
@@ -2762,7 +2734,7 @@ methods and convenience functions.
2763 : list to appended
2735 : list to appended
2765−[`pandoc.List:map (fn)`]{#pandoc.List:map}
2737+[`pandoc.List:map (fn)`]{#pandoc.list:map}
2767: Returns a copy of the current list by applying the given
2739: Returns a copy of the current list by applying the given
2768 function to all elements.
2740 function to all elements.
@@ -2772,7 +2744,7 @@ methods and convenience functions.
2773 : function which is applied to all list items.
2745 : function which is applied to all list items.
2775−[`pandoc.List:filter (pred)`]{#pandoc.List:filter}
2747+[`pandoc.List:filter (pred)`]{#pandoc.list:filter}
2777: Returns a new list containing all items satisfying a given
2749: Returns a new list containing all items satisfying a given
2778 condition.
2750 condition.
@@ -2789,19 +2761,19 @@ methods and convenience functions.
2790Access to system information and functionality.
2762Access to system information and functionality.
2792−## Static Fields {#system-fields}
2764+## Static Fields
2794−### arch {#system-arch}
2766+### arch {#pandoc.system.arch}
2796The machine architecture on which the program is running.
2768The machine architecture on which the program is running.
2798−### os {#system-os}
2770+### os {#pandoc.system.os}
2800The operating system on which the program is running.
2772The operating system on which the program is running.
2802−## Functions {#system-functions}
2774+## Functions
2804−### environment {#system-environment}
2776+### environment {#pandoc.system.environment}
2806`environment ()`
2778`environment ()`
@@ -2812,7 +2784,7 @@ Returns:
2812- A table mapping environment variables names to their string
2784- A table mapping environment variables names to their string
2813 value (table).
2785 value (table).
2815−### get\_working\_directory {#system-get_working_directory}
2787+### get\_working\_directory {#pandoc.system.get_working_directory}
2817`get_working_directory ()`
2789`get_working_directory ()`
@@ -2822,7 +2794,7 @@ Returns:
2823- The current working directory (string).
2795- The current working directory (string).
2825−### with\_environment {#system-with_environment}
2797+### with\_environment {#pandoc.system.with_environment}
2827`with_environment (environment, callback)`
2799`with_environment (environment, callback)`
@@ -2846,7 +2818,7 @@ Returns:
2847- The result(s) of the call to `callback`
2819- The result(s) of the call to `callback`
2849−### with\_temporary\_directory {#system-with_temporary_directory}
2821+### with\_temporary\_directory {#pandoc.system.with_temporary_directory}
2851`with_temporary_directory ([parent_dir,] templ, callback)`
2823`with_temporary_directory ([parent_dir,] templ, callback)`
@@ -2871,7 +2843,7 @@ Returns:
2872- The result of the call to `callback`.
2844- The result of the call to `callback`.
2874−### with\_working\_directory {#system-with_working_directory}
2846+### with\_working\_directory {#pandoc.system.with_working_directory}
2876`with_working_directory (directory, callback)`
2848`with_working_directory (directory, callback)`
@@ -2897,7 +2869,7 @@ Returns:
2898Constructors for types which are not part of the pandoc AST.
2870Constructors for types which are not part of the pandoc AST.
2900−### Version {#pandoc.types.Version}
2872+### Version {#pandoc.types.version}
2902`Version (version_specifier)`
2874`Version (version_specifier)`
@@ -2908,8 +2880,8 @@ Parameters:
2908`version`:
2880`version`:
2909: Version specifier: this can be a version string like
2881: Version specifier: this can be a version string like
2910 `'2.7.3'`, a list of integers like `{2, 7, 3}`, a single
2882 `'2.7.3'`, a list of integers like `{2, 7, 3}`, a single
2911− integer, or a [Version](#type-ref-Version).
2883+ integer, or a [Version].
2915−- A new [Version](#type-ref-Version) object.
2887+- A new [Version] object.