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 |
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 |
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the smallest form I could find that worked for me:
header1|header2|header3
---|---|---
one|two|three
one|two| three
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.