Introduced protocols for Markup elements to enable polymorphism in rendering