summaryrefslogtreecommitdiff
path: root/tests/extensions/extra/tables.txt
blob: 2dc4967b75a06b6bdc66c4adc72106a32aaaf244 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
Table Tests
-----------

First Header  | Second Header
------------- | -------------
Content Cell  | Content Cell
Content Cell  | Content Cell

| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  | Content Cell  |
| Content Cell  | Content Cell  |

| Item      | Value |
| :-------- | -----:|
| Computer  | $1600 |
| Phone     |   $12 |
| Pipe      |    $1 |

| Function name | Description                    |
| ------------- | ------------------------------ |
| `help()`      | Display the help window.       |
| `destroy()`   | **Destroy your computer!**     |

|foo|bar|baz|
|:--|:-:|--:|
|   | Q |   |
|W  |   |  W|

foo|bar|baz
---|---|---
   | Q |
 W |   | W

Three spaces in front of a table:

   First Header | Second Header
   ------------ | -------------
   Content Cell | Content Cell
   Content Cell | Content Cell

   | First Header | Second Header |
   | ------------ | ------------- |
   | Content Cell | Content Cell  |
   | Content Cell | Content Cell  |

Four spaces is a code block:

    First Header | Second Header
    ------------ | -------------
    Content Cell | Content Cell
    Content Cell | Content Cell

| First Header | Second Header |
| ------------ | ------------- |

More inline code block tests

Column 1 | Column 2 | Column 3
---------|----------|---------
word 1   | word 2   | word 3
word 1   | `word 2` | word 3
word 1   | \`word 2 | word 3
word 1   | `word 2 | word 3
word 1   | `word |2` | word 3
words    |`` some | code `` | more words
words    |``` some | code ``` | more words
words    |```` some | code ```` | more words
words    |`` some ` | ` code `` | more words
words    |``` some ` | ` code ``` | more words
words    |```` some ` | ` code ```` | more words

A test for issue #440:

foo | bar
--- | ---
foo | (`bar`) and `baz`.

Lists are not tables

 - this | should | not
 - be | a | table

Add tests for issue #449

Odd backticks | Even backticks
------------ | -------------
``[!\"\#$%&'()*+,\-./:;<=>?@\[\\\]^_`{|}~]`` | ``[!\"\#$%&'()*+,\-./:;<=>?@\[\\\]^`_`{|}~]``

Escapes | More Escapes
------- | ------
`` `\`` | `\`

Only the first backtick can be escaped

Escaped | Bacticks
------- | ------
\`` \`  | \`\`

Test escaped pipes

Column 1 | Column 2
-------- | --------
`|` \|   | Pipes are okay in code and escaped. \|

| Column 1 | Column 2 |
| -------- | -------- |
| row1     | row1    \|
| row2     | row2     |

Test header escapes

| `` `\`` \| | `\` \|
| ---------- | ---- |
| row1       | row1 |
| row2       | row2 |

Escaped pipes in format row should not be a table

| Column1   | Column2 |
| ------- \|| ------- |
| row1      | row1    |
| row2      | row2    |

Test escaped code in Table

Should not be code | Should be code
------------------ | --------------
\`Not code\`       | \\`code`
\\\`Not code\\\`   | \\\\`code`

Single column tables

| Is a Table |
| ---------- |

| Is a Table
| ----------

Is a Table |
---------- |

| Is a Table |
| ---------- |
| row        |

| Is a Table
| ----------
| row

Is a Table |
---------- |
row        |

| Is not a Table
--------------
| row

Is not a Table |
--------------
row            |

| Is not a Table
| --------------
row

Is not a Table |
-------------- |
row