This is because the generated id macro ends up being incorrectly converted like it were a Confluence macro