diff options
| author | Albert Krewinkel <[email protected]> | 2024-06-10 07:10:15 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2024-06-10 07:10:15 +0200 |
| commit | d4166192985931dc8299b7ca65491df2e74ac2be (patch) | |
| tree | 999d90b6cc9112042b3c2feba2cb586e5463088c /doc | |
| parent | da4a55a9858aa4bdd5f2b3a03ee260403f0c958a (diff) | |
doc/lua-filters.md: Document operators of the "Doc" type.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lua-filters.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md index 4ade18be2..1d77ec813 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -2287,6 +2287,25 @@ lines are equivalent: test = pandoc.layout.quotes(pandoc.layout.literal 'this') test = pandoc.layout.quotes('this') ``` +### Operators {#type-doc-operators} + +#### `..` {#type-doc.__concat} + +Concatenate two `Doc` elements. + +#### `+` {#type-doc.__add} + +Concatenate two `Doc`s, inserting a reflowable space between them. + +#### `/` {#type-doc.__div} + +If `a` and `b` are `Doc` elements, then `a / b` puts `a` above `b`. + +#### `//` {#type-doc.__idiv} + +If `a` and `b` are `Doc` elements, then `a // b` puts `a` above +`b`, inserting a blank line between them. + ## List {#type-list} |
