Hi Mark,
good stuff!. You marco seem to work to a large extend. I wrote a similar one to convert to html to tw2, and had about the same success, for reference it is here
http://tiddlyclip.tiddlyspot.com/#%24%3A%2Fplugins%2Fbj%2Ftiddlyclip%2Fconvert.jsIf you make a small change in your code you can call the macro from a tiddlyclip rule. The change is
/* Check for special environmental variable. But argument text will take precedence. */
var vartext = (this && this.getVariable) ? this.getVariable("text2convert"): null;
if (vartext) intext = vartext ;
The tiddlyclip tiddlers are below, and allow content to be converted as it is clipped.
All the best
BJ