Fixes #3325: fixed generated markup for conditional comments

No changelog line since feature was introduced after beta