Skip to content

Commit

Permalink
Markdown writer: issue INFO warning when not rendering table...
Browse files Browse the repository at this point in the history
...e.g., when `raw_html` is disabled and the table can't be
fit into a supported markdown table format.

Closes #10407.
  • Loading branch information
jgm committed Nov 23, 2024
1 parent 678c791 commit 7d2bd2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Text/Pandoc/Writers/Markdown.hs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,9 @@ blockToMarkdown' opts t@(Table (ident,_,_) blkCapt specs thead tbody tfoot) = do
(Pandoc nullMeta [t])
return $ tbl $$ blankline -- caption is in the HTML table
| otherwise
-> return $ (literal "[TABLE]" $$ caption''') $$ blankline
-> do
report (BlockNotRendered t)
return $ (literal "[TABLE]" $$ caption''') $$ blankline
blockToMarkdown' opts (BulletList items) = do
contents <- inList $ mapM (bulletListItemToMarkdown opts) items
return $ (if isTightList items then vcat else vsep)
Expand Down

0 comments on commit 7d2bd2c

Please sign in to comment.