From 3a90c37816ff39104ee2851e1c6c1732c4528763 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston <174761+Jermolene@users.noreply.github.com> Date: Sat, 15 Jul 2023 17:58:14 +0100 Subject: [PATCH] Update substitute operator docs Fixes #7609 --- editions/tw5.com/tiddlers/filters/substitute Operator.tid | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editions/tw5.com/tiddlers/filters/substitute Operator.tid b/editions/tw5.com/tiddlers/filters/substitute Operator.tid index 85da915da..c7f98384e 100644 --- a/editions/tw5.com/tiddlers/filters/substitute Operator.tid +++ b/editions/tw5.com/tiddlers/filters/substitute Operator.tid @@ -18,9 +18,9 @@ The <<.op substitute>> operator replaces any placeholders in the input titles in # variables |placeholder syntax|description|h -|`$n$`|Text substitution of a parameter provided to the operator, where n is the position of the parameter starting with 1 for the first parameter. Unmatched placeholders pass through unchanged.| -|`$(varname)$`|Text substitution of a variable. Undefined variables are replaced with an empty string.| -|`${ filter expression }$`|Text substitution with the first result of evaluating the filter expression. | +|`$n$`|Text substitution of a parameter provided to the operator, where n is the position of the parameter starting with 1 for the first parameter. Unmatched placeholders pass through unchanged. | +|`$(varname)$`|Text substitution of a variable. Undefined variables are replaced with an empty string. | +|`${ filter expression }$`|Text substitution of the first result of evaluating a filter expression. In other words, if the filter returns multiple titles only the first one will be used. | <<.tip """Placeholders that contain square bracket characters are not valid filter syntax when used directly in a filter expression. However they can be provided as input to the <$macrocall $name=".op" _="substitute"/> operator as text references or variables""">>