Correct infinite recursion when parsing simple links