allow "class[foo|class[bar|text]]" class to be promoted to paragraph

this (still) doesn't require strict nesting of spans