make it possible to add markup specific hooks when parsing elements