@@ -1375,11 +1375,30 @@ Comparisons are performed element-wise, i.e.
13751375`must_be_at_least(actual, expected [, error_message])`
13761376
13771377Raise an error message if the actual version is older than the
1378−expected version.
1378+expected version; does nothing if actual is equal to or newer
1379+than the expected version.
1380+
1381+Parameters:
1382+
1383+`actual`
1384+: actual version specifier ([Version](#type-ref-Version))
1385+
1386+`expected`
1387+: minimum expected version ([Version](#type-ref-Version))
1388+
1389+`error_message`
1390+: optional error message template. The string is used as format
1391+ string, with the expected and actual versions as arguments.
1392+ Defaults to `"expected version %s or newer, got %s"`.
13791393
13801394Usage:
13811395
1382− PANDOC_VERSION:must_be_at_least('2.7.3')
1396+ PANDOC_VERSION:must_be_at_least '2.7.3'
1397+ PANDOC_API_VERSION:must_be_at_least(
1398+ '1.17.4',
1399+ 'pandoc-types is too old: expected version %s, got %s'
1400+ )
1401+
13831402
13841403[Block]: #type-ref-Block
13851404[List]: #module-pandoc.list
@@ -2759,3 +2778,20 @@ Returns:
27592778# Module pandoc.types
27602779
27612780Constructors for types which are not part of the pandoc AST.
2781+
2782+### Version {#pandoc.types.Version}
2783+
2784+`Version (version_specifier)`
2785+
2786+Creates a Version object.
2787+
2788+Parameters:
2789+
2790+`version`:
2791+: Version specifier: this can be a version string like
2792+ `'2.7.3'`, a list of integers like `{2, 7, 3}`, a single
2793+ integer, or a [Version](#type-ref-Version).
2794+
2795+Returns:
2796+
2797+- A new [Version](#type-ref-Version) object.