Skip to content

Commit 8425622

Browse files
theletterfclaudecursoragent
committed
Add column widths example to csv-include documentation
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3d99b2b commit 8425622

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

docs/syntax/csv-include.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,34 @@ Specify a custom field separator (default is comma):
4949
:::
5050
```
5151

52+
### Column widths
53+
54+
Control column widths using the `:widths:` option, exactly like the [`{table}` directive](/syntax/tables#column-widths). Values are relative and normalized to percentages:
55+
56+
:::::{tab-set}
57+
58+
::::{tab-item} Output
59+
60+
:::{csv-include} ../_snippets/sample-data.csv
61+
:widths: 20 10 20 50
62+
:caption: User data with fixed column widths
63+
:::
64+
65+
::::
66+
67+
::::{tab-item} Markdown
68+
69+
```markdown
70+
:::{csv-include} _snippets/sample-data.csv
71+
:widths: 20 10 20 50
72+
:caption: User data with fixed column widths
73+
:::
74+
```
75+
76+
::::
77+
78+
:::::
79+
5280
### Wide tables
5381

5482
CSV files with many columns are rendered as scrollable tables:

0 commit comments

Comments
 (0)