GitHub's markdown renderer creates lowercase anchors for headings. For example, this heading, ## Diagnostic, can be found using either of these two URLs, which differ in the case of their fragment ID:
https://github.com/golang/tools/blob/master/gopls/doc/settings.md#diagnostic
https://github.com/golang/tools/blob/master/gopls/doc/settings.md#Diagnostic
Perhaps your markdown renderer (which has been really useful--thanks!) could do the same.