If the SVG being linked to is hosted by GitHub, they could make arbitrary changes before serving it to the browser.
IIRC, I uploaded an SVG in a GitHub comment and the resulting image had some of its interactive functionality removed. Of course, that situation is slightly different since the file was uploaded in a comment and not as part of a Git repo... but still.