Improved in the next build. Tags that include that attribute closing character | will no longer be mistaken as part of the table's attributes in RTE/WYSIWYG mode, unless the closing character appears after the tag.
Note that all variations cannot be fixed entirely:
- Tags that are used as part of the attributes portion of a table should now be preserved when switching editor modes; however, tags that are used within a named attribute cannot be preserved since the attribute will fail validation.
- Tags that are used directly in the attributes portion of a table cannot be edited while in RTE/WYSIWYG modes since attributes are not visible in those modes.
As before, if the intention is not to use a tag in the attributes, make sure that there is no closing | after the tag, or ensure you put the closing | before the tag.
However, for your specific use case, it is probably more beneficial to create dedicated CSS classes for use in such tables, as this will be more efficient, generate less output, and possibly be less code to remember than specific template invokes. Classes can be whitelisted in the wiki-related options for the TABLE BB-Code.