mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2024-11-29 11:14:12 +01:00
41 lines
1.5 KiB
JavaScript
41 lines
1.5 KiB
JavaScript
import React from 'react';
|
|
import PageView from './PageView.jsx';
|
|
import Table from 'react-bootstrap/lib/Table'
|
|
|
|
export default class TextPageView extends PageView {
|
|
|
|
createItemViews(items, showWhitespaces) { // eslint-disable-line no-unused-vars
|
|
return <div>
|
|
<Table responsive>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
#
|
|
</th>
|
|
<th>
|
|
Category
|
|
</th>
|
|
<th>
|
|
Text
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{ items.map((block, i) => <tr key={ i }>
|
|
<td>
|
|
{ i }
|
|
</td>
|
|
<td>
|
|
{ block.category }
|
|
</td>
|
|
<td>
|
|
<pre style={ { display: 'inline-block' } }>{ block.text }</pre>
|
|
</td>
|
|
</tr>
|
|
) }
|
|
</tbody>
|
|
</Table>
|
|
</div>
|
|
}
|
|
|
|
} |