then I found out about procedures and that they should be preferred. Now I’d like to rewrite the macro as a procedure, however there’s an issue: {##<<nutrient>>} is not valid filter syntax.
In a filter, a transcluded field/index value is essentially a shortcut for <currentTiddler>get[fieldname] or <currentTiddler>getindex[indexname]. So you could define an equivalent procedure like this:
In this particular case, since the only content of your macro/procedure is a text widget, I’d actually recommend using a function instead. Functions are specifically designed to return the plain text result of a filter, so you can eliminate the text widget. Try this: