Move parse_reference logic to a reusable function
Turn placenames into hyperlinks