diff options
author | John MacFarlane <jgm@berkeley.edu> | 2013-01-15 08:45:46 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2013-01-15 08:46:09 -0800 |
commit | 7bc37e4414fc34574e5c0dbbef86d165405f9cff (patch) | |
tree | 8a7c323385a44066f983df9bf2474fed6f0a6010 /src/Text/Pandoc/Writers/HTML.hs | |
parent | 1a4b47e93368bfbd31daccdfedbd9527ee740201 (diff) | |
download | pandoc-7bc37e4414fc34574e5c0dbbef86d165405f9cff.tar.gz |
Use 'fig:' instead of '\SOH' in title to indicate figure.
Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
Diffstat (limited to 'src/Text/Pandoc/Writers/HTML.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index f683e7b62..3b9a1eae6 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -392,8 +392,8 @@ treatAsImage fp = blockToHtml :: WriterOptions -> Block -> State WriterState Html blockToHtml _ Null = return mempty blockToHtml opts (Plain lst) = inlineListToHtml opts lst --- title beginning with \1 indicates that the image is a figure -blockToHtml opts (Para [Image txt (s,'\1':tit)]) = do +-- title beginning with fig: indicates that the image is a figure +blockToHtml opts (Para [Image txt (s,'f':'i':'g':':':tit)]) = do img <- inlineToHtml opts (Image txt (s,tit)) let tocapt = if writerHtml5 opts then H5.figcaption |