Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to adjust column width with markdown

Abhishek Kumar
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!
July 28, 2020

We have requirement to publish markdown with tables on confluence page. We are using rest API to publish markdown.  I am able to publish table, but table column width is blank. It is not looking too impressing.  Please find below markdown syntax and published images. I am using <ac:structured-macro ac:name="markdown"> to publish markdown with Rest API.

Could you please suggest any approach to adjust column width with markdown? Or how can we configure table with Markdown?

It will be highly appreciated for any clue. Please let me know for any input.

Markdown Syntax

| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |

Published Table On Confluence

Confluence_Table.PNG

1 answer

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 3, 2020

Hello @Abhishek Kumar !

As I understand, you need to create tables via REST API using Markdown and then control the width of the columns themselves.

You should be able to do so by using an HTML block within the markdown. Here is some explanation about this element from the Markdown documentation page:

Here is another community thread that deals with a pretty similar situation:

 

I hope this helps! Looking forward to your reply.

Suggest an answer

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

Atlassian Community Events