diff options
-rw-r--r-- | MANUAL.txt | 33 | ||||
-rw-r--r-- | pandoc.cabal | 4 | ||||
-rw-r--r-- | stack.yaml | 2 |
3 files changed, 21 insertions, 18 deletions
diff --git a/MANUAL.txt b/MANUAL.txt index 8c277124e..7cbc62759 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -1748,6 +1748,8 @@ delimiters. - If `variable` is an array, the material inside the loop will be evaluated repeatedly, with `variable` being set to each value of the array in turn, and concatenated. +- If `variable` is a map, the material inside will be set to + the map. - If the value of the associated variable is not an array or a map, a single iteration will be performed on its value. @@ -1763,6 +1765,10 @@ $endfor$ ${ for(foo.bar) } - ${ foo.bar.last }, ${ foo.bar.first } ${ endfor } + +$for(mymap)$ +$it.name$: $it.office$ +$endfor$ ``` You may optionally specify a separator between consecutive @@ -1933,11 +1939,9 @@ Currently the following filters are predefined: value was an array, the `key` will be the array index, starting with 1. -- `uppercase`: Converts a textual value to uppercase, - and has no effect on other values. +- `uppercase`: Converts text to uppercase. -- `lowercase`: Converts a textual value to lowercase, - and has no effect on other values. +- `lowercase`: Converts text to lowercase. - `length`: Returns the length of the value: number of characters for a textual value, number of elements @@ -1946,21 +1950,20 @@ Currently the following filters are predefined: - `reverse`: Reverses a textual value or array, and has no effect on other values. -- `chomp`: Removes trailing newlines (and breakable space) - from a textual value, and has no effect on other values. +- `chomp`: Removes trailing newlines (and breakable space). + +- `nowrap`: Disables line wrapping on breakable spaces. -- `alpha`: Converts a textual value that can be - read as an integer into a lowercase alphabetic - character `a..z` (mod 26), and has no effect on - other values. This can be used to get lettered +- `alpha`: Converts textual values that can be + read as an integer into lowercase alphabetic + characters `a..z` (mod 26). This can be used to get lettered enumeration from array indices. To get uppercase letters, chain with `uppercase`. -- `roman`: Converts a textual value that can be - read as an integer into a lowercase roman numerial, - and has no effect on other values. This can be used - to get lettered enumeration from array indices. To - get uppercase roman, chain with `uppercase`. +- `roman`: Converts textual values that can be + read as an integer into lowercase roman numerials. + This can be used to get lettered enumeration from array indices. + To get uppercase roman, chain with `uppercase`. - `left n "leftborder" "rightborder"`: Renders a textual value in a block of width `n`, aligned to the left, with an optional diff --git a/pandoc.cabal b/pandoc.cabal index 7e521759f..bd2b0650d 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -415,7 +415,7 @@ library JuicyPixels >= 3.1.6.1 && < 3.4, Glob >= 0.7 && < 0.11, cmark-gfm >= 0.2 && < 0.3, - doctemplates >= 0.7.1 && < 0.8, + doctemplates >= 0.7.2 && < 0.8, network-uri >= 2.6 && < 2.7, network >= 2.6, http-client >= 0.4.30 && < 0.7, @@ -733,7 +733,7 @@ test-suite test-pandoc executable-path >= 0.0 && < 0.1, zip-archive >= 0.2.3.4 && < 0.5, xml >= 1.3.12 && < 1.4, - doctemplates >= 0.7.1 && < 0.8, + doctemplates >= 0.7.2 && < 0.8, Glob >= 0.7 && < 0.11 if impl(ghc < 8.4) hs-source-dirs: prelude diff --git a/stack.yaml b/stack.yaml index 0714a6e88..a7dab94ba 100644 --- a/stack.yaml +++ b/stack.yaml @@ -21,7 +21,7 @@ extra-deps: - doclayout-0.2.0.1 - HsYAML-0.2.0.0 - HsYAML-aeson-0.2.0.0 -- doctemplates-0.7.1 +- doctemplates-0.7.2 - pandoc-citeproc-0.16.4 ghc-options: "$locals": -fhide-source-paths -Wno-missing-home-modules |