From 2fc8fa6ccdba74fadcc4d38db5d453ea5d12b3d6 Mon Sep 17 00:00:00 2001 From: Moritz Schubotz Date: Fri, 3 Jun 2016 10:10:06 +0200 Subject: [PATCH] Fix: Update png fallback In Ifdd75ce51076b098af67a96b5dcb0fc0726d2b00 I missed to update the png fallback mechanism given the fact that SVG is now a -1 ) { @@ -30,6 +11,8 @@ // We verify whether SVG as is supported and otherwise use the // PNG fallback. See https://github.com/Modernizr/Modernizr/blob/master/feature-detects/svg/asimg.js if ( !document.implementation.hasFeature( 'http://www.w3.org/TR/SVG11/feature#Image', '1.1' ) ) { - insertImg( true ); + $( '.mwe-math-fallback-image-inline, .mwe-math-fallback-image-display' ).each( function ( ) { + this.src = this.src.replace( 'media/math/render/svg/', 'media/math/render/png/' ); + } ); } }( jQuery ) );