https://tiddlywiki.com/#Pragmas tells me that pragmas appear at the start of the text of a tiddler, but I have problems (from code perspective) understanding where they end.
If I have a tiddler containing pragmas followed by other wikitext code, is there a silver bullet filter operator or macro or something to split it into two distinct parts: the pragmas block and the rest?
Looking for last \end
string in the tiddler and splitting by it is not correct, since it can be found in a string variable way deep down in the wikitext code that follows the pragmas header. As I’ve recently learned (painfully, but hopefully lasting because of it), \end
markers also have an optional suffix. And oneliners like functions don’t have an \end
marker at all, so this is not a good pattern to look for either.