Re: [tw5] Is it safe to make idempotent macros?

2020-12-13 Thread Jeremy Ruston
Hi Leung, As Mark points out, it sounds like you can achieve what you want in wikitext, without requiring JavaScript. Just to add a bit of background for subsequent searchers: The motivation for JavaScript macros was to provide the simplest possible way integrate a custom JS module with

[tw5] Is it safe to make idempotent macros?

2020-12-12 Thread Leung arvin
I wish to implement the following functionality, using JS macro, defining the macro with name M. Whenever I use a macro <> , then it creates a Tiddler with title "New Tiddler". Then the macro presents this link [[New Tiddler]]. The point is that the macro will create the Tiddler for me (with