From 13a895bd2daddabdfaadb04e20dbc7563c9c39be Mon Sep 17 00:00:00 2001 From: btheado Date: Sun, 18 Jun 2023 05:05:06 -0500 Subject: [PATCH] Remove text subst from operator example macro (#7550) * Removed textual substitution from .operator-example macro * Convert .operator-example from macro to procedure --- .../tw5.com/tiddlers/system/operator-macros.tid | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/editions/tw5.com/tiddlers/system/operator-macros.tid b/editions/tw5.com/tiddlers/system/operator-macros.tid index d24cac016..afa0593b1 100644 --- a/editions/tw5.com/tiddlers/system/operator-macros.tid +++ b/editions/tw5.com/tiddlers/system/operator-macros.tid @@ -1,17 +1,17 @@ created: 20150117152607000 -modified: 20220227210111054 +modified: 20230617183916622 tags: $:/tags/Macro title: $:/editions/tw5.com/operator-macros \define .operator-examples(op,text:"Examples") <$link to="$op$ Operator (Examples)">$text$ -\define .operator-example-tryit-actions() <$action-setfield $tiddler=<<.state>> text="show" filter=<<__eg__>>/> -\define .operator-example(n,eg,ie) +\procedure .operator-example-tryit-actions() <$action-setfield $tiddler=<<.state>> text="show" filter=<>/> +\procedure .operator-example(n,eg,ie)
-<$list filter="[title<.state-prefix>addsuffix{!!title}addsuffix[/]addsuffix[$n$]]" variable=".state"> +<$list filter="[title<.state-prefix>addsuffix{!!title}addsuffix[/]addsuffix]" variable=".state"> <$reveal state=<<.state>> type="nomatch" text="show"> - `$eg$` - <$macrocall $name=".if" cond="""$ie$""" then="""
→ $ie$
"""/> + <$text text=<>/> + <$macrocall $name=".if" cond=<> then={{{[[
→ ]addsuffixaddsuffix[
]]}}}/>
<$button actions=<<.operator-example-tryit-actions>>>Try it
@@ -21,7 +21,7 @@ title: $:/editions/tw5.com/operator-macros
<$button set=<<.state>> setTo="">Hide - <$reveal stateTitle=<<.state>> stateField="filter" type="nomatch" text=<<__eg__>>> + <$reveal stateTitle=<<.state>> stateField="filter" type="nomatch" text=<>> <$button actions=<<.operator-example-tryit-actions>>>Reset