aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-09-15 15:33:48 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2012-09-15 15:33:48 -0400
commitc5de3c411f1edac805a9fdd35f79f47d6aabbc9d (patch)
treed5dc1b42e033aa593dcf934dd00db46a659d98fc /src/Text/Pandoc
parent293452f9706f8b84074f7c23ef8fc01428bebd35 (diff)
downloadpandoc-c5de3c411f1edac805a9fdd35f79f47d6aabbc9d.tar.gz
MediaWiki reader: Handle ref tags as footnotes.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/MediaWiki.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/MediaWiki.hs b/src/Text/Pandoc/Readers/MediaWiki.hs
index dcf97646d..3d17e245b 100644
--- a/src/Text/Pandoc/Readers/MediaWiki.hs
+++ b/src/Text/Pandoc/Readers/MediaWiki.hs
@@ -456,6 +456,7 @@ inlineTag :: MWParser Inlines
inlineTag = do
(tag, _) <- lookAhead $ htmlTag isInlineTag'
case tag of
+ TagOpen "ref" _ -> B.note . B.plain <$> inlinesInTags "ref"
TagOpen "nowiki" _ -> try $ do
(_,raw) <- htmlTag (~== tag)
if '/' `elem` raw