File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -309,9 +309,8 @@ blocksToICML opts style lst = do
309309-- | Convert a Pandoc block element to ICML.
310310blockToICML :: PandocMonad m => WriterOptions -> Style -> Block -> WS m (Doc Text )
311311blockToICML opts style (Plain lst) = parStyle opts style " " lst
312- -- title beginning with fig: indicates that the image is a figure
313- blockToICML opts style (Para img@ [Image _ txt (_,Text. stripPrefix " fig:" -> Just _)]) = do
314- figure <- parStyle opts (figureName: style) " " img
312+ blockToICML opts style (SimpleFigure attr txt src tit) = do
313+ figure <- parStyle opts (figureName: style) " " [Image attr txt (src, tit)]
315314 caption <- parStyle opts (imgCaptionName: style) " " txt
316315 return $ intersperseBrs [figure, caption]
317316blockToICML opts style (Para lst) = parStyle opts (paragraphName: style) " " lst
You can’t perform that action at this time.
0 commit comments