mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-08 01:22:43 +00:00

In this pull request parent-child relationship for elements generated with v2 parser is based on actual element IDs instead of IDs baked somewhere in the HTML script. With some extra bug fixing it allowed for significantly simplifying json -> HTML script
56 lines
1.1 KiB
HTML
56 lines
1.1 KiB
HTML
<body class="Document">
|
|
<div class="Page" data-page-number="1">
|
|
<header class="Header">
|
|
<h1 class="Title">
|
|
Header
|
|
</h1>
|
|
<time class="CalendarDate">
|
|
Date: October 30, 2023
|
|
</time>
|
|
</header>
|
|
<form class="Form">
|
|
<label class="FormField" for="company-name">
|
|
From field name
|
|
</label>
|
|
<input class="FormFieldValue" value="Example value"/>
|
|
</form>
|
|
<section class="Section">
|
|
<table class="Table">
|
|
<thead class="TableHeader">
|
|
<tr class="TableRow">
|
|
<th class="TableCellHeader">
|
|
Description
|
|
</th>
|
|
<th class="TableCellHeader">
|
|
Row header
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="TableBody">
|
|
<tr class="TableRow">
|
|
<td class="TableCell">
|
|
Value description
|
|
</td>
|
|
<td class="TableCell">
|
|
<span class="Currency">
|
|
50 $
|
|
</span>
|
|
<span class="Measurement">
|
|
(1.32 %)
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<section class="Section">
|
|
<h2 class="Subtitle">
|
|
2. Subtitle
|
|
</h2>
|
|
<p class="NarrativeText">
|
|
Paragraph text
|
|
</p>
|
|
</section>
|
|
</div>
|
|
</body>
|