@@ -584,9 +584,12 @@ blockToMarkdown' opts t@(Table _ blkCapt specs thead tbody tfoot) = do
584584 let numcols = maximum (length aligns : length widths :
585585 map length (headers:rows))
586586 caption' <- inlineListToMarkdown opts caption
587− let caption'' = if null caption || not (isEnabled Ext_table_captions opts)
587+ let caption'' = if null caption
588588 then blankline
589− else blankline $$ (": " <> caption') $$ blankline
589+ else
590+ if isEnabled Ext_table_captions opts
591+ then blankline $$ (": " <> caption') $$ blankline
592+ else blankline $$ caption' $$ blankline
590593 let hasSimpleCells = onlySimpleTableCells $ headers : rows
591594 let isSimple = hasSimpleCells && all (==0) widths
592595 let isPlainBlock (Plain _) = True