Implemented foreign link formatting in docs.