Skip to content

Commit 7a6a06c

Browse files
authored
Fix multiline table docs and add custom cell sizes section to EN (#290)
* Some fixes for tables and fix width/height params * Add custom cell sizes section to EN table docs
1 parent 18a9611 commit 7a6a06c

2 files changed

Lines changed: 51 additions & 7 deletions

File tree

en/syntax/tables/multiline.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,50 @@ The value `N` must be a positive integer.
173173
|| Text | Text | Text ||
174174
|#
175175

176+
## Custom cell sizes {#size}
177+
178+
Cell sizes can be controlled using attributes.
179+
180+
{% list tabs %}
181+
182+
- Cell width
183+
184+
To set a custom cell width, use the `{style="width: 400px"}` syntax inside the cell.
185+
186+
```markdown
187+
#|
188+
|| **Header1** {style="width: 400px"} | **Header2** ||
189+
|| Text | Text ||
190+
|#
191+
```
192+
193+
**Result**
194+
195+
#|
196+
|| **Header1** {style="width: 400px"} | **Header2** ||
197+
|| Text | Text ||
198+
|#
199+
200+
- Cell height
201+
202+
To set a custom cell height, use the `{style="height:100px"}` syntax inside the cell.
203+
204+
```markdown
205+
#|
206+
|| **Header1** {style="height:100px"} | **Header2** ||
207+
|| Text | Text ||
208+
|#
209+
```
210+
211+
**Result**
212+
213+
#|
214+
|| **Header1** {style="height:100px"} | **Header2** ||
215+
|| Text | Text ||
216+
|#
217+
218+
{% endlist %}
219+
176220
## Cell Merging {#span}
177221

178222
Cells can be merged vertically using the "^" symbol:

ru/syntax/tables/multiline.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
на двух строчках
4343
|
4444
- Текст 1
45-
- Текст 2[cell_merging_guide.md](..%2F..%2F..%2F..%2F..%2FDocuments%2Fcell_merging_guide.md)
45+
- Текст 2
4646
- Текст 3
4747
- Текст 4||
4848
|#
@@ -54,8 +54,8 @@
5454
||Текст
5555
на двух строчках
5656
|
57-
- Текс 1
58-
- Тект 2
57+
- Текст 1
58+
- Текст 2
5959
- Текст 3
6060
- Текст 4||
6161
|#
@@ -182,11 +182,11 @@
182182

183183
- Ширина ячейки
184184

185-
Для установки пользовательской ширины ячейки используйте синтаксис `{width=400px}` внутри ячейки.
185+
Для установки пользовательской ширины ячейки используйте синтаксис `{style="width: 400px"}` внутри ячейки.
186186

187187
```markdown
188188
#|
189-
|| **Заголовок1** {width=400px} | **Заголовок2** ||
189+
|| **Заголовок1** {style="width: 400px"} | **Заголовок2** ||
190190
|| Текст | Текст ||
191191
|#
192192
```
@@ -200,11 +200,11 @@
200200

201201
- Высота ячейки
202202

203-
Для установки пользовательской высоты ячейки используйте синтаксис `{height=100px}` внутри ячейки.
203+
Для установки пользовательской высоты ячейки используйте синтаксис `{style="height:100px"}` внутри ячейки.
204204

205205
```markdown
206206
#|
207-
|| **Заголовок1** {height=100px} | **Заголовок2** ||
207+
|| **Заголовок1** {style="height:100px"} | **Заголовок2** ||
208208
|| Текст | Текст ||
209209
|#
210210
```

0 commit comments

Comments
 (0)