How to display a table in a README.md file in Github?

I want to display the table in the readme.md file. I read the GitHub Flavored Markdown and followed his words. So this is my table:

| Attempt | #1 | #2 | #3 | #4 | #5 | #6 | #7 | #8 | #9 | #10 | #11 | #12 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| Seconds | 301 | 283 | 290 | 286 | 289 | 285 | 287 | 287 | 272 | 276 | 269 | 254 |

However, I do not see the table and the result looks like this:

enter image description here

+17
source share
5 answers

You need to see the documentation again. You can see this cheatsheet

In your case, you need to make the second line, as in the example below:

Attempt | #1 | #2 | #3 | #4 | #5 | #6 | #7 | #8 | #9 | #10 | #11
--- | --- | --- | --- |--- |--- |--- |--- |--- |--- |--- |---
Seconds | 301 | 283 | 290 | 286 | 289 | 285 | 287 | 287 | 272 | 276 | 269

the difference between this code and your repo code is that the second delimited row has the same columns as the header. After that, this table will be displayed

+19
source
| Attempt | #1 | #2 | #3 | #4 | #5 | #6 | #7 | #8 | #9 | #10 | #11 | #12 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| Seconds | 301 | 283 | 290 | 286 | 289 | 285 | 287 | 287 | 272 | 276 | 269 | 254 |

, .

| Attempt | #1 | #2 |
| :---: | :---: | :---: |
| Seconds | 301 | 283 |

, .

| Attempt | #1  | #2  |
| :---:   | :-: | :-: |
| Seconds | 301 | 283 |

| - .

, - ( ), | ,

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

:

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

- GitHub

:

| Attempt | #1  | #2  |
| ------- | --- | --- |
| Seconds | 301 | 283 |

, : , , :

| Left-Aligned  | Center Aligned  | Right Aligned |
| :------------ |:---------------:| -----:|
| col 3 is      | some wordy text | $1600 |
| col 2 is      | centered        |   $12 |
| zebra stripes | are neat        |    $1 |

- GitHub

, , :

| Attempt | #1  | #2  |
| :-----: | :-: | :-: |
| Seconds | 301 | 283 |
+7

readme README.md, READ.ME

+3

Markdown Table (https://www.tablesgenerator.com/markdown_tables), csv html- Markdown, README.md, - .

, README excel, csv , Generated Markdown, , .

, .

+1

, .

0

Source: https://habr.com/ru/post/1653945/


All Articles