@twMat
My current Work around is;
I am yet to make it a permanent practice with all my wikis but I have made a global macro with all such additional strings [[, ]], {{, }}, eg `\define pipe() |" with the intention to create a bookmarklet I just click to add to any wiki .
An alternative to using such macros so any special character can be escaped at least inside filter operators as others have suggested would be nice.
- One could imagine parenthesis eg; split(|) instead of split[|] or split({{) where the content is considered liberals and “removed” before the filter is parsed and replaces with hidden variables.
However I have wondered if we could build a simple global macro with a preset set of named variables for these special characters - basically making the variables part of the core and standardised so we need not define them and we all use the same names.
If you wanted to get cheeky you could define this;
\define ❴() {
\define ❴❴() {{
\define ⟦⟦() [[
\define ⟧⟧() ]]
then use <<❴>> or <❴> in filters
<<⟦⟦>> or <⟦⟦>
<<⟧⟧>> or <⟧⟧>
The macro or variable name is actually a similar looking Unicode character not an actual open dbt square or curly bracket and is replaced with the “real thing”.
The problem is, these are not easy to insert from the keyboard, but perhaps if we had an editor toolbar button with a drop down to insert these macro names/symbols from a list it would be easier. But this would be equally helpful with named global variables eg the option “| pipe” inserts <pipe> or <<pipe>>
which is defined as “|”.
Regards