I fill your pain. For example bitbucket has a total garbage instead of proper markdown renderer. No TOC, no stable header links, no navigation to anchors on first page visit, no image scaling.
But if you control documentation render process there is a number of feature-rich renderers like pandoc, mkdocs and others.