Closed chrispy-snps closed 8 months ago
Fixes #113. Table and figure captions are now covered by unit tests.
The updated output is as follows:
from markdownify import markdownify as md md('TEXT<table><caption>Caption</caption><tr><td>CELL</td></tr></tbody></table>') # > 'TEXT\n\nCaption\n| CELL |\n\n' ^^^^^^^^^ md('TEXT<figure><figcaption>Caption</figcaption><span>SPAN</span></figure>') # > 'TEXT\n\nCaption\n\nSPAN' # ^^^^^^^^^^^^^^^ md('<figure><span>SPAN</span><figcaption>Caption</figcaption></figure>TEXT') # > 'SPAN\n\nCaption\n\nTEXT' # ^^^^^^^^^^^^^^^
Fixes #113. Table and figure captions are now covered by unit tests.
The updated output is as follows: