removed unused dedup_markup_tags method