fix markup rendering