git.iko.soy/typeable/pandoc
on master help sign in
Markdown writer: render caption as following paragraph...

when `Ext_table_caption` not enabled.

commit0e8e0dc94e91b8c798591b063ff6c9440ad18c1a authorJohn MacFarlane <jgm@berkeley.edu> dateSat 18 Jul 2020, 14:45 (6 years ago) parent485825a
1 file changed+5−2
src/Text/Pandoc/Writers/Markdown.hs+5−2
src/Text/Pandoc/Writers/Markdown.hs+5−2
@@ -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