Extract the links (such as URLs in code comments in a code element) and hyperlinks (anchors) in the
argument node's tree, that is, the tree with it as the root node.
KeepExternal filters out both the internal and invalid links from the argument slice returning a slice of
any remaining external valid links using the same underlying array as the argument slice.