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 @@ -299,9 +299,8 @@ blockToXml :: PandocMonad m => Block -> FBM m [Content]
299299blockToXml (Plain ss) = cMapM toXml ss -- FIXME: can lead to malformed FB2
300300blockToXml (Para [Math DisplayMath formula]) = insertMath NormalImage formula
301301-- title beginning with fig: indicates that the image is a figure
302- blockToXml (Para [Image atr alt (src,tgt)])
303- | Just tit <- T. stripPrefix " fig:" tgt
304- = insertImage NormalImage (Image atr alt (src,tit))
302+ blockToXml (SimpleFigure atr alt (src, tit)) =
303+ insertImage NormalImage (Image atr alt (src,tit))
305304blockToXml (Para ss) = list . el " p" <$> cMapM toXml ss
306305blockToXml (CodeBlock _ s) = return . spaceBeforeAfter .
307306 map (el " p" . el " code" ) . T. lines $ s
You can’t perform that action at this time.
0 commit comments