diff options
author | Aner Lucero <4rgento@gmail.com> | 2021-06-09 10:53:35 -0300 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-10-22 15:14:23 -0700 |
commit | 921af3085422ed5896db6996c54009cf2a61a517 (patch) | |
tree | 0c1e58837b5105e972ac3717a95c54df14b52a2e /src/Text/Pandoc/Writers/ConTeXt.hs | |
parent | a9f4bff5e29ed15fb567f4d5f59b60ef3c71933f (diff) | |
download | pandoc-921af3085422ed5896db6996c54009cf2a61a517.tar.gz |
Use simpleFigure in Readers.
Diffstat (limited to 'src/Text/Pandoc/Writers/ConTeXt.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/ConTeXt.hs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Writers/ConTeXt.hs b/src/Text/Pandoc/Writers/ConTeXt.hs index 3cafcefba..13970cbc3 100644 --- a/src/Text/Pandoc/Writers/ConTeXt.hs +++ b/src/Text/Pandoc/Writers/ConTeXt.hs @@ -162,10 +162,7 @@ blockToConTeXt (Div attr@(_,"section":_,_) innerContents <- blockListToConTeXt xs return $ header' $$ innerContents $$ footer' blockToConTeXt (Plain lst) = inlineListToConTeXt lst --- title beginning with fig: indicates that the image is a figure -blockToConTeXt (Para [Image attr txt (src,tgt)]) - | Just _ <- T.stripPrefix "fig:" tgt - = do +blockToConTeXt (SimpleFigure attr txt (src, _)) = do capt <- inlineListToConTeXt txt img <- inlineToConTeXt (Image attr txt (src, "")) let (ident, _, _) = attr |