aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/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/Readers/HTML.hs
parenta9f4bff5e29ed15fb567f4d5f59b60ef3c71933f (diff)
downloadpandoc-921af3085422ed5896db6996c54009cf2a61a517.tar.gz
Use simpleFigure in Readers.
Diffstat (limited to 'src/Text/Pandoc/Readers/HTML.hs')
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index fdf4f28e0..c78faebbd 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -551,7 +551,7 @@ pFigure = try $ do
let caption = fromMaybe mempty mbcap
case B.toList <$> mbimg of
Just [Image attr _ (url, tit)] ->
- return $ B.para $ B.imageWith attr url ("fig:" <> tit) caption
+ return $ B.simpleFigureWith attr caption url tit
_ -> mzero
pCodeBlock :: PandocMonad m => TagParser m Blocks