github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/tests/test-tables.md (about)

     1  # Markdown Tables
     2  
     3  Verify that all tables render as described. First row is boldface.
     4  
     5  ### Normal Tables
     6  
     7  These tables use different raw text as inputs, but all three should render as the same table. 
     8  
     9  #### Table 1
    10  
    11  Raw text:
    12  
    13  ```
    14  First Header  | Second Header
    15  ------------- | -------------
    16  Content Cell  | Content Cell
    17  Content Cell  | Content Cell
    18  ```
    19  
    20  Renders as:
    21  
    22  First Header  | Second Header
    23  ------------- | -------------
    24  Content Cell  | Content Cell
    25  Content Cell  | Content Cell
    26  
    27  #### Table 2
    28  
    29  Raw Text:
    30  
    31  ```
    32  | First Header  | Second Header |
    33  | ------------- | ------------- |
    34  | Content Cell  | Content Cell  |
    35  | Content Cell  | Content Cell  |
    36  ```
    37  
    38  Renders as:
    39  
    40  | First Header  | Second Header |
    41  | ------------- | ------------- |
    42  | Content Cell  | Content Cell  |
    43  | Content Cell  | Content Cell  |
    44  
    45  #### Table 3
    46  
    47  Raw Text:
    48  
    49  ```
    50  | First Header | Second Header           |
    51  | ------------- | ----------- |
    52  | Content Cell     | Content Cell|
    53  | Content Cell        | Content Cell    |
    54  ```
    55  
    56  Renders as:
    57  
    58  | First Header | Second Header           |
    59  | ------------- | ----------- |
    60  | Content Cell     | Content Cell|
    61  | Content Cell        | Content Cell    |
    62  
    63  ### Tables Containing Markdown
    64  
    65  This table should contain A1: Strikethrough, A2: Bold, B1: Italics, B2: Dolphin emoticon.
    66  
    67  | Column\Row | 1 | 2 |
    68  | ------------- | ------------- |------------- |
    69  | A | ~~Strikethrough~~ | **Bold** |
    70  | B | _italics_  | :dolphin: |
    71  
    72  ### Table with Left, Center, and Right Aligned Columns
    73  
    74  The left column should be left aligned, the center column centered and the right column should be right aligned. 
    75  
    76  | Left-Aligned  | Center Aligned  | Right Aligned |
    77  | :------------ |:---------------:| -----:|
    78  | 1 | this text       |  $100 |
    79  | 2 | is              |   $10 |
    80  | 3 | centered        |    $1 |
    81  
    82  ### Table with Escaped Pipes
    83  
    84  First row cells: single backslash, "asdf". Second row cells: "ab" , "a|d"
    85  
    86  | \\ | asdf|
    87  |----|-----|
    88  | ab | a\|d|