flibbles / tw5-relink

Tiddlywiki5 plugin to better update all other tiddlers when renaming a tiddler.
https://flibbles.github.io/tw5-relink/
BSD 3-Clause "New" or "Revised" License
121 stars 6 forks source link

Rename backlinks inside a macrocall #21

Closed postkevone closed 4 years ago

postkevone commented 4 years ago

I'm using this plugin https://sobjornstad.github.io/TiddlyRemember To create cards that sync with an external program, so in TiddlyWiki I have to write text and also backlinks inside macrocalls.

Something like this: <$macrocall $name="myMacro" text="this is some content with a [[backlink]]"/>

But I noticed that relink doesn't update backlnks when inside a macrocall. Is this a bug or is it normal behavior??

flibbles commented 4 years ago

Do you have your macro whitelisted? The best way to do it (assuming this is a user-defined macro) is to use the relink pragma:

\relink myMacro text wikitext
\define myMacro(text) ...
postkevone commented 4 years ago

Sorry, didn't realize I haven't setup the whitelist, now it works. Thank you for your fast reply.