From e462f80d74e7d0297ae96dc8bd57cb66dcccfa71 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 21 Feb 2017 22:57:48 +0100 Subject: MediaWiki writer: add display attribute on `` tags. This allows display math to be rendered properly. Closes #3452. --- src/Text/Pandoc/Writers/MediaWiki.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Writers/MediaWiki.hs b/src/Text/Pandoc/Writers/MediaWiki.hs index c554812fd..d677cd2d0 100644 --- a/src/Text/Pandoc/Writers/MediaWiki.hs +++ b/src/Text/Pandoc/Writers/MediaWiki.hs @@ -388,8 +388,11 @@ inlineToMediaWiki (Code _ str) = inlineToMediaWiki (Str str) = return $ escapeString str -inlineToMediaWiki (Math _ str) = return $ "" ++ str ++ "" - -- note: str should NOT be escaped +inlineToMediaWiki (Math mt str) = return $ + "" ++ str ++ "" + -- note: str should NOT be escaped inlineToMediaWiki (RawInline f str) | f == Format "mediawiki" = return str -- cgit v1.2.3