fixed doc.endpoint so that ":link:" generation does not mark the endpoint as "matched"
moved endpoint matching into two different slots (full & linked)