@@ -463,7 +463,7 @@ blockToMarkdown' opts (Para [Image attr alt (src,'f':'i':'g':':':tit)])
463 | isEnabled Ext_raw_html opts &&
463 | isEnabled Ext_raw_html opts &&
464 not (isEnabled Ext_link_attributes opts) &&
464 not (isEnabled Ext_link_attributes opts) &&
465 attr /= nullAttr = -- use raw HTML
465 attr /= nullAttr = -- use raw HTML
466− (text . T.unpack . T.strip) <$>
466+ ((<> blankline) . text . T.unpack . T.strip) <$>
467 writeHtml5String opts{ writerTemplate = Nothing }
467 writeHtml5String opts{ writerTemplate = Nothing }
468 (Pandoc nullMeta [Para [Image attr alt (src,"fig:" ++ tit)]])
468 (Pandoc nullMeta [Para [Image attr alt (src,"fig:" ++ tit)]])
469 | otherwise = blockToMarkdown opts (Para [Image attr alt (src,tit)])
469 | otherwise = blockToMarkdown opts (Para [Image attr alt (src,tit)])