Replace paragraphStyleMap with more general styleMap