From 7bc37e4414fc34574e5c0dbbef86d165405f9cff Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 15 Jan 2013 08:45:46 -0800 Subject: Use 'fig:' instead of '\SOH' in title to indicate figure. Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201 --- src/Text/Pandoc/Writers/MediaWiki.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc/Writers/MediaWiki.hs') diff --git a/src/Text/Pandoc/Writers/MediaWiki.hs b/src/Text/Pandoc/Writers/MediaWiki.hs index 38dd969a4..4cec2d648 100644 --- a/src/Text/Pandoc/Writers/MediaWiki.hs +++ b/src/Text/Pandoc/Writers/MediaWiki.hs @@ -81,8 +81,8 @@ blockToMediaWiki _ Null = return "" blockToMediaWiki opts (Plain inlines) = inlineListToMediaWiki opts inlines --- title beginning with \1 indicates that the image is a figure -blockToMediaWiki opts (Para [Image txt (src,'\1':tit)]) = do +-- title beginning with fig: indicates that the image is a figure +blockToMediaWiki opts (Para [Image txt (src,'f':'i':'g':':':tit)]) = do capt <- if null txt then return "" else ("|caption " ++) `fmap` inlineListToMediaWiki opts txt -- cgit v1.2.3