But should {{{{a}}}} be parsed as {{ {{a}} }} or { {{ {a} }} } or { {{{a}}} } or {{{ {a} }}}? Depending on context, any of those could be intended. I think not parsing it at all and leaving it as text is the only option - at least that way it is obvious what has gone wrong.