Minimal Table
The simplest table: one column, one row.
Each tab is the real output of gridwell convert, and the docs’ tests check that it still is. The Preview is the HTML writer’s output as it renders on this page; the HTML tab shows its markup without the base stylesheet ("base_styles": false), which the Preview has. The ANSI tab is drawn without color ("color": false).
NoteThe IR:
fixtures/minimal/minimal_1x1.json
{
"ir_version": "1.0",
"config": {
"table_cols": 1,
"header_rows": 1,
"body_rows": 1,
"stub_cols": 0,
"row_striping": false,
"row_striping_include_stub": false,
"row_striping_include_body": false,
"column_labels_hidden": false,
"table_width": null,
"container_width": null,
"container_height": null,
"container_overflow": null,
"locale": "en-US",
"page_break_mode": "avoid",
"aria_label": null,
"aria_describedby": null,
"summary": null
},
"styles": {
"defs": {},
"compositions": {},
"conditionals": []
},
"header": {
"title": null,
"subtitle": null,
"extra_lines": [],
"preheader_content": null
},
"column_spec": [
{
"id": "col_0",
"align": "left",
"align_char": null,
"width": "auto",
"min_width": null,
"max_width": null,
"style_id": null,
"hidden": false,
"label": "Value"
}
],
"table": {
"thead": {
"rows": [
{
"role": "column_label",
"style_id": null,
"cells": [
{
"content": [{ "type": "text", "value": "Value" }],
"colspan": 1,
"rowspan": 1,
"style_id": null,
"is_stub": false,
"is_placeholder": false,
"scope": "col"
}
]
}
]
},
"tbody": [
{
"group_id": null,
"label": null,
"rows": [
{
"role": null,
"style_id": null,
"cells": [
{
"content": [{ "type": "text", "value": "Hello" }],
"typed_value": { "type": "string", "value": "Hello" },
"colspan": 1,
"rowspan": 1,
"style_id": null,
"is_stub": false,
"is_placeholder": false
}
]
}
],
"summary_rows": []
}
]
},
"footer": {
"footnotes": [],
"source_notes": []
},
"extensions": {}
}| Value |
|---|
| Hello |
<div class="gw_container">
<style>
.gw_table .gw__al_left { text-align: left }
</style>
<table class="gw_table">
<thead>
<tr class="gw_col_labels">
<th class="gw_col_label gw__al_left" scope="col" id="col_0">Value</th>
</tr>
</thead>
<tbody>
<tr>
<td headers="col_0">Hello</td>
</tr>
</tbody>
</table>
</div>\begin{tabular}{l}
\toprule
Value \\
\midrule
Hello \\
\bottomrule
\end{tabular}#block[
#set align(left)
#table(
columns: (auto,),
align: (left,),
stroke: none,
table.header(
[#text(weight: "bold")[Value]],
table.hline(stroke: 0.5pt),
),
[Hello],
)
]┌────────────┐
│ Value │
├────────────┤
│ Hello │
└────────────┘