MediaWiki reader: Handle ref tags as footnotes.
commitc5de3c411f1edac805a9fdd35f79f47d6aabbc9d
authorJohn MacFarlane <jgm@berkeley.edu>
dateSat 15 Sep 2012, 15:33 (14 years ago)
parent293452f
src/Text/Pandoc/Readers/MediaWiki.hs+1
@@ -456,6 +456,7 @@ inlineTag :: MWParser Inlines
456456inlineTag = do
457457 (tag, _) <- lookAhead $ htmlTag isInlineTag'
458458 case tag of
459+ TagOpen "ref" _ -> B.note . B.plain <$> inlinesInTags "ref"
459460 TagOpen "nowiki" _ -> try $ do
460461 (_,raw) <- htmlTag (~== tag)
461462 if '/' `elem` raw