code sample rendering fixes