Hello, I am trying to modify links that appear in a paragraph so that they appear just like the surrounding text. I would like this to work with both passage links and links that just modify variables. I have gotten this to work for passages but not for any other sort of link.
You cannot use regular links—either link markup or data-passage bearing anchors—to execute code in-place. While they can execute code, via their setters, they’re meant primarily for passage navigation.
If you want a link that can execute code without navigation, then you’ll want the <<link>> macro. For example:
Off to one side is a <<link "painting">><<set $badTouch to true>><</link>>.
To make that stealthy, simply modify your style like so: