Add hierarchical marked content to text layer.