A simple script to convert inline markdown links to references.