diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-09-15 15:33:48 -0400 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-09-15 15:33:48 -0400 |
commit | c5de3c411f1edac805a9fdd35f79f47d6aabbc9d (patch) | |
tree | d5dc1b42e033aa593dcf934dd00db46a659d98fc /src/Text/Pandoc | |
parent | 293452f9706f8b84074f7c23ef8fc01428bebd35 (diff) | |
download | pandoc-c5de3c411f1edac805a9fdd35f79f47d6aabbc9d.tar.gz |
MediaWiki reader: Handle ref tags as footnotes.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/MediaWiki.hs | 1 |
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 |