A few fixes and improvements to the post type recognition and text parsing