MediaWiki reader: Allow Image: for images.
Closes #971.
commit728e47ae15252619444a9ee91f2ceeecd4f3cf98
authorJohn MacFarlane <jgm@berkeley.edu>
dateFri 6 Sep 2013, 15:40 (13 years ago)
parentf49749c
src/Text/Pandoc/Readers/MediaWiki.hs+1−1
@@ -523,7 +523,7 @@ endline = () <$ try (newline <*
523523image :: MWParser Inlines
524524image = try $ do
525525 sym "[["
526− sym "File:"
526+ sym "File:" <|> sym "Image:"
527527 fname <- many1 (noneOf "|]")
528528 _ <- many (try $ char '|' *> imageOption)
529529 caption <- (B.str fname <$ sym "]]")