Turns mark up to closure code