Is it possible to center tables in a markdown file?

后端 未结 4 627
萌比男神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:54

    It is simple. As you know the "|-|" is used for indicate the table and ":" is used for indicate the text alignment. If |:-| entered that is a right aligned text column. If |-:| entered that is a left aligned text and if |:-:| entered that is a centre aligned.

提交回复
热议问题