summaryrefslogtreecommitdiffstats
path: root/tests/test-tables.md
blob: eef1f0093191e3d55024dd7641dbd92abc5c6a68 (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
# Markdown Tables

Verify that all tables render as described. First row is boldface.

### Normal Tables

These tables use different raw text as inputs, but all three should render as the same table. 

#### Table 1

Raw text:

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

Renders as:

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

#### Table 2

Raw Text:

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

Renders as:

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

#### Table 3

Raw Text:

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

Renders as:

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

### Tables Containing Markdown

This table should contain A1: Strikethrough, A2: Bold, B1: Italics, B2: Dolphin emoticon.

| Column\Row | 1 | 2 |
| ------------- | ------------- |------------- |
| A | ~~Strikethrough~~ | **Bold** |
| B | _italics_  | :dolphin: |

### Table with Left, Center, and Right Aligned Columns

The left column should be left aligned, the center column centered and the right column should be right aligned. 

| Left-Aligned  | Center Aligned  | Right Aligned |
| :------------ |:---------------:| -----:|
| 1 | this text       |  $100 |
| 2 | is              |   $10 |
| 3 | centered        |    $1 |

### Table with Escaped Pipes

First row cells: single backslash, "asdf". Second row cells: "ab" , "a|d"

| \\ | asdf|
|----|-----|
| ab | a\|d|