Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

markdown content not rendering properly via rest api

I am generating/updating a confluence page using rest api. Below (groovy) is the json which is passed as request body. Note that the value content  is basically a string which is read from a file containing markdown content. The problem is that the page is not rendering according to markdown standards (rendering is off). 

Is there any recommendation to read file content (which are markdown content) in a certain way that rendering does not go bad ? 

JsonBuilder builder = new JsonBuilder();
builder {
version {
number versionNumber
title 'Tools Information'
type 'page'
space {
key 'engineering'
body {
storage {
representation 'wiki'
value content


1 answer

Hi @colossal


did you find the proper way of passing markdown read from a file? I want to use the Markdown not Wiki format to create a page, but without a success for now... Also, I don't want to use any external apps or plugins to do it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Watch 4 Confluence apps compete for Best App Demo in September's Appy Hours

Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...

594 views 0 13
Read article

Atlassian Community Events