forked from tdemin/gmnhg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtables.gmi
52 lines (40 loc) · 1.02 KB
/
tables.gmi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Tables
gmnhg uses preformatted text blocks to render ASCII text tables.
## Simple table example
```
+-----------+-------------+
| Syntax | Description |
+-----------+-------------+
| Header | Title |
| Paragraph | Text |
+-----------+-------------+
```
## Empty rows or cells
These are picked up as well.
```
+-------+------+
| test | nice |
+-------+------+
| `est` | |
+-------+------+
```
```
+------+------+
| test | nice |
+------+------+
| | |
+------+------+
```
## Formatting inside tables
Text formatting is fully supported inside tables. Links will also get picked up, and a links block will appear after the parent table if needed.
```
+----------+----------+--------------+
| Header 1 | Header 2 | Header 3[^1] |
+----------+----------+--------------+
| Item 1 | Item 2 | Item 3 |
| Item 1a | Item 2a | Item 3a |
+----------+----------+--------------+
```
[^1]: Example footnote that explains header 3.
=> https://example.tld Header 2
=> https://www.example.com Item 2