mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 12:48:28 +00:00
* fix(html): restore parents after rich cell walking Signed-off-by: Matvei Smirnov <vdalekesmirnov@gmail.com> * fix(html): add table cell context manager, update tests Signed-off-by: Matvei Smirnov <vdalekesmirnov@gmail.com> * fix(html): table with heading test data Signed-off-by: Matvei Smirnov <vdalekesmirnov@gmail.com> --------- Signed-off-by: Matvei Smirnov <vdalekesmirnov@gmail.com>
28 lines
649 B
HTML
Vendored
28 lines
649 B
HTML
Vendored
<html>
|
|
<head>
|
|
<style>
|
|
table, th, td {border: 1px solid black; border-collapse: collapse;}
|
|
td {padding:30px;}
|
|
table {margin: 30px;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Main Title</h1>
|
|
<p>Before the table</p>
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<h2>A</h2>
|
|
<p>text</p>
|
|
</td>
|
|
<td>B</td>
|
|
</tr>
|
|
<tr>
|
|
<td>1...</td>
|
|
<td>2...</td>
|
|
</tr>
|
|
</table>
|
|
<h2>Section After</h2>
|
|
After the table
|
|
</body>
|
|
</html> |