rules for adding classes and data-pat-packery to the content