return correct markup when there are multiple shortcodes in a post