From 467e3be700888863d8ba53680bc2553f6030b393 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 8 Aug 2015 20:55:00 -0700 Subject: MediaWiki reader: handle unquoted table attributes. Closes #2355. --- src/Text/Pandoc/Readers/MediaWiki.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Readers/MediaWiki.hs b/src/Text/Pandoc/Readers/MediaWiki.hs index 2a5adab22..b23b44544 100644 --- a/src/Text/Pandoc/Readers/MediaWiki.hs +++ b/src/Text/Pandoc/Readers/MediaWiki.hs @@ -252,8 +252,8 @@ parseAttr = try $ do skipMany spaceChar k <- many1 letter char '=' - char '"' - v <- many1Till (satisfy (/='\n')) (char '"') + v <- (char '"' >> many1Till (satisfy (/='\n')) (char '"')) + <|> many1 nonspaceChar return (k,v) tableStart :: MWParser () -- cgit v1.2.3