diff --git a/src/Text/Pandoc/Readers/MediaWiki.hs b/src/Text/Pandoc/Readers/MediaWiki.hs
index 51fc845a3..f6192ffc6 100644
--- a/src/Text/Pandoc/Readers/MediaWiki.hs
+++ b/src/Text/Pandoc/Readers/MediaWiki.hs
@@ -505,8 +505,6 @@ endline = () <$ try (newline <*
                      notFollowedBy' hrule <*
                      notFollowedBy tableStart <*
                      notFollowedBy' header <*
-                     notFollowedBy' template <*
-                     notFollowedBy' (htmlTag isBlockTag') <*
                      notFollowedBy anyListStart)
 
 image :: MWParser Inlines