Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Why are my markdown tables not working?

Paul Smith November 11, 2022

Markdown tables are included in the syntax guide. However they do not appear to work with README.md files.

 

HEADER

| one | two | three |

|---|---|---|

| one | two | three |

 

3 answers

1 accepted

0 votes
Answer accepted
Paul Smith December 14, 2022

The problem turned out to be with prettier trying to format the table incorrectly. In order for the table to display correctly in Bitbucket, all of the borders must be aligned perfectly.

HEADER


| one | two | three |

|-----|-----|-------|

| one | two | three |

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 14, 2022

Hi Paul and welcome to the community.

You need to remove the triple backticks (unless they are part of code blocks before and after the table) and also leave a new line between HEADER and the table.

The following should work:

 

HEADER

| one | two | three |
|---|---|---|
| one | two | three |

 

Kind regards,
Theodora

Paul Smith December 14, 2022

The backticks were not in my actual MD file. Added them to try and format my question, but they did not work as expected on this forum.

0 votes
Eugenio Miró
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 14, 2022

I think the correct syntax is to have at least a space between the pipe character and the hyphens, That's how it's shown in the Markdown Syntax Guide, but it still doesn't work for me.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events