This can be seen by implementing a wiki macro with this code:
Insert this macro in the content of a wiki page and see the result in view mode: the target syntax is not set. This prevents the macro from producing different output depending on the target syntax, see https://www.xwiki.org/xwiki/bin/view/FAQ/How%20to%20write%20Macro%20code%20for%20the%20edit%20mode . |