Swc-1144: fix doi detection, output anchor text, and add a test