A similar issue was reported in #183 and addressed by #217. However, this doesn't work when files are passed into STDIN, or for local files.
lychee --dump --base https://www.example.com example.html # works
lychee --dump --base https://www.example.com example # doesn't work
cat example.html | lychee --dump --base https://www.example.com # doesn't work
Could this be fixed by having --base force HTML mode?