Improve DocLink parsing #820