Parse citations from plain text strings or HTML