aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/HTML.hs
diff options
context:
space:
mode:
authorAner Lucero <4rgento@gmail.com>2021-06-09 10:53:35 -0300
committerJohn MacFarlane <jgm@berkeley.edu>2021-10-22 15:14:23 -0700
commit921af3085422ed5896db6996c54009cf2a61a517 (patch)
tree0c1e58837b5105e972ac3717a95c54df14b52a2e /src/Text/Pandoc/Writers/HTML.hs
parenta9f4bff5e29ed15fb567f4d5f59b60ef3c71933f (diff)
downloadpandoc-921af3085422ed5896db6996c54009cf2a61a517.tar.gz
Use simpleFigure in Readers.
Diffstat (limited to 'src/Text/Pandoc/Writers/HTML.hs')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 8fc81ed24..0a4c47387 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -742,8 +742,8 @@ blockToHtmlInner opts (Para [Image attr@(_,classes,_) txt (src,tit)])
inlineToHtml opts (Image attr txt (src, tit))
_ -> figure opts attr txt (src, tit)
-- title beginning with fig: indicates that the image is a figure
-blockToHtmlInner opts (Para [Image attr txt (s,T.stripPrefix "fig:" -> Just tit)]) =
- figure opts attr txt (s,tit)
+blockToHtmlInner opts (SimpleFigure attr caption (src, title)) =
+ figure opts attr caption (src, title)
blockToHtmlInner opts (Para lst) = do
contents <- inlineListToHtml opts lst
case contents of