aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-09-12 09:29:00 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-09-12 09:29:00 -0700
commit7326f0bf1723075e2dc6a3bcb9c98924e40ada92 (patch)
tree64a5fa170f6317b371ad194f20fcd06f5cf28676 /src/Text
parent3d361b2101c097ecde343625b15da8c197d733eb (diff)
downloadpandoc-7326f0bf1723075e2dc6a3bcb9c98924e40ada92.tar.gz
Minor fixes to MediaWiki reader.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/MediaWiki.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/MediaWiki.hs b/src/Text/Pandoc/Readers/MediaWiki.hs
index f3adbe72e..89c295141 100644
--- a/src/Text/Pandoc/Readers/MediaWiki.hs
+++ b/src/Text/Pandoc/Readers/MediaWiki.hs
@@ -261,7 +261,7 @@ linebreak = B.linebreak <$
externalLink :: MWParser Inlines
externalLink = try $ do
char '['
- (orig, src) <- uri
+ (_, src) <- uri
skipMany1 spaceChar
lab <- manyTill inline (char ']')
let lab' = if null lab
@@ -271,7 +271,7 @@ externalLink = try $ do
url :: MWParser Inlines
url = do
- (_, src) <- uri
+ (orig, src) <- uri
return $ B.link src "" (B.str orig)
nowiki :: MWParser Inlines