Test output of table with MD-styled cells.
()
| 451 | |
| 452 | |
| 453 | def test_md_styles(): |
| 454 | """Test output of table with MD-styled cells.""" |
| 455 | filename = os.path.join(scriptdir, "resources", "test-styled-table.pdf") |
| 456 | doc = pymupdf.open(filename) |
| 457 | page = doc[0] |
| 458 | tabs = page.find_tables()[0] |
| 459 | text = """|Column 1|Column 2|Column 3|\n|---|---|---|\n|Zelle (0,0)|**Bold (0,1)**|Zelle (0,2)|\n|~~Strikeout (1,0), Zeile 1~~<br>~~Hier kommt Zeile 2.~~|Zelle (1,1)|~~Strikeout (1,2)~~|\n|**`Bold-monospaced`**<br>**`(2,0)`**|_Italic (2,1)_|**_Bold-italic_**<br>**_(2,2)_**|\n|Zelle (3,0)|~~**Bold-strikeout**~~<br>~~**(3,1)**~~|Zelle (3,2)|\n\n""" |
| 460 | assert tabs.to_markdown() == text |
nothing calls this directly
no test coverage detected
searching dependent graphs…