Thread:Project:Support desk/SVG shows up as "File:X.svg" instead of image/reply

I circumvented the problem by creating a custom tag extension that uses the html5 "embed" tag to show SVGs. Works perfectly -- except that for some reason that I can't figure out, MediaWiki inserts a "pre" tag around the embed, making it look ugly. Any idea how I could disable this auto-pre?