Is it possible to center tables in a markdown file?

后端 未结 4 681
萌比男神i
萌比男神i 2021-01-03 18:07

I have a table:

    | This | Is | A | Table |
    | :--- | -- | - | ----: |
    | foo  | ba | r | elbaT |

I\'d like the table to display in

4条回答
  •  萌比男神i
    2021-01-03 19:05

    Yes. You can have GFM tables in API Blueprint – check http://docs.tables.apiary.io for rendered version of the blueprint source bellow.

    FORMAT: 1A
    
    # Tables API 
    Note: Tables can be handcrafted or generated at .
    
    ## Table 1
    **Discussion option 1**
    
    | Tables   |      Are      |  Cool |
    |----------|:-------------:|------:|
    | col 1 is |  left-aligned | $1600 |
    | col 2 is |    centered   |   $12 |
    | col 3 is | right-aligned |    $1 |
    
    # Message [/pages]
    ## Create a Message [POST]
    
    ### Table 2
    **Discussion option 2**
    
    | Tables   |      Are      |  Cool |
    |----------|:-------------:|------:|
    | col 1 is |  left-aligned | $1600 |
    | col 2 is |    centered   |   $12 |
    | col 3 is | right-aligned |    $1 |
    
    + Request (application/json)
    
        ## Table 3
        **Discussion option 3**
    
        | Tables   |      Are      |  Cool |
        |----------|:-------------:|------:|
        | col 1 is |  left-aligned | $1600 |
        | col 2 is |    centered   |   $12 |
        | col 3 is | right-aligned |    $1 |
    
        + Headers
    
                Authorization:Bearer tokenString
    
        + Body
    
                { ... }
    
    + Response 201
    

提交回复
热议问题