This looks rather brittle - if pandoc even adds a newline between these two tags, the regex won't match.