The HTML generation is surprisingly good because the training corpus for markup is cleaner than most programming languages.