Fixes Markup in templates.