define body content parser for span directives