This filter is provides the same functionality as the official interlinks filter that is documented here.
It is optimised to cope a little better with large inventory files.
quarto add has2k1/interlinks
This will install the extension under the _extensions
subdirectory.
If you're using version control, you will want to check in this directory.