diff --git a/src/Text/Pandoc/Writers/MediaWiki.hs b/src/Text/Pandoc/Writers/MediaWiki.hs
index c554812fd..d677cd2d0 100644
--- a/src/Text/Pandoc/Writers/MediaWiki.hs
+++ b/src/Text/Pandoc/Writers/MediaWiki.hs
@@ -388,8 +388,11 @@ inlineToMediaWiki (Code _ str) =
inlineToMediaWiki (Str str) = return $ escapeString str
-inlineToMediaWiki (Math _ str) = return $ ""
- -- note: str should NOT be escaped
+inlineToMediaWiki (Math mt str) = return $
+ ""
+ -- note: str should NOT be escaped
inlineToMediaWiki (RawInline f str)
| f == Format "mediawiki" = return str
diff --git a/test/writer.mediawiki b/test/writer.mediawiki
index 066606c00..71b8e7f3e 100644
--- a/test/writer.mediawiki
+++ b/test/writer.mediawiki
@@ -469,13 +469,13 @@ Ellipses…and…and….
= LaTeX =
*
-*
-*
-*
-*
-* -Tree
-* Here’s some display math:
-* Here’s one that has a line break in it: .
+*
+*
+*
+*
+* -Tree
+* Here’s some display math:
+* Here’s one that has a line break in it: .
These shouldn’t be math: