Apparently, just like GitHub, HTML files are not rendered on Codeberg.
For GitHub repos, it is possible to use https://htmlpreview.github.io/, but it doesn't work with Codeberg repos.
It is not an issue per se, maybe more like a feature request. Or maybe there is already a way to deal with this.
Thanks!