diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-11-18 20:10:32 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-11-18 20:10:32 -0800 |
commit | 0d4813d7ba73efd537ebef6a7e2ebd5bf8e708a4 (patch) | |
tree | f1f18ddd44de87877f342e1720323057aa76d5ff /MANUAL.txt | |
parent | 06124fb863be3533fd4a8229cb88a86c14d8390a (diff) | |
download | pandoc-0d4813d7ba73efd537ebef6a7e2ebd5bf8e708a4.tar.gz |
Update MANUAL.txt for doctemplates changes.
Diffstat (limited to 'MANUAL.txt')
-rw-r--r-- | MANUAL.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/MANUAL.txt b/MANUAL.txt index 4763a8130..65ab23b8b 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -1892,10 +1892,9 @@ with a short line length.$~$ ### Filters -A filter transforms the value of a variable. Filters are -specified using a slash (`/`) between the variable name and -the filter name. They may go anywhere a variable can go. -Example: +A filter transforms the value of a variable or partial. Filters are +specified using a slash (`/`) between the variable name (or partial) +and the filter name. Example: ``` $for(name)$ @@ -1905,6 +1904,8 @@ $endfor$ $for(metadata/pairs)$ - $it.key$: $it.value$ $endfor$ + +$employee:name()/uppercase$ ``` Filters may be chained: @@ -1945,6 +1946,9 @@ 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. + - `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 |