[formatter] implement 'C' format specifier (#5647)
to apply a conversion after ':' or
to apply multiple conversions
for example {tags:CSl} or {tags:J - /Cl}
to convert list to string and lowercase it
This commit is contained in:
@@ -192,6 +192,12 @@ Format specifiers can be used for advanced formatting by using the options provi
|
||||
<td><code>{foo:Ro/()/}</code></td>
|
||||
<td><code>F()() Bar</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>C<conversion(s)>/</code></td>
|
||||
<td>Apply <a href="#conversions">Conversions</a> to the current value</td>
|
||||
<td><code>{tags:CSgc/}</code></td>
|
||||
<td><code>"Sun-tree-water"</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>S<order>/</code></td>
|
||||
<td>Sort a list. <code><order></code> can be either <strong>a</strong>scending or <strong>d</strong>escending/<strong>r</strong>everse. (default: <strong>a</strong>)</td>
|
||||
|
||||
Reference in New Issue
Block a user