fix inline managed text internal linking. Fixes #287