Currently docusaurus provides a hooks for controlling sidebar item generation. Similar to this, would it be possible to get a hook into link generation. This hook would be called for each link/url detected in the md files and can modify the url by returning a new url.
The need arises because of our internal setup, where we have more than one repos from which we copy the md files before building the docs site. Before the actual build, we preprocess the links (search and replace using sed) in the md files to ensure that they are not broken.
If there is some documentation for this already in docusaurus docs, please point me to it.