Is it possible to center tables in a markdown file?

后端 未结 4 670
萌比男神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条回答
  •  没有蜡笔的小新
    2021-01-03 18:42

    If you use the standard documentation, use the

    tag like so.

    Blueprint

    FORMAT: 1A
    HOST: http://www.google.com
    
    # Tables
    Notes API is a *short texts saving* service similar to its physical paper presence on your table.
    
    
    | Tables | Are | Cool | |----------|:-------------:|------:| | col 1 is | left-aligned | $1600 | | col 2 is | centered | $12 | | col 3 is | right-aligned | $1 |
    # Group Notes (...)

    Preview


    If you use the ‘New Documentation’, it's not possible to center a table (since the table takes a full width of the column).

    Preview

提交回复
热议问题