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

markdown content not rendering properly via rest api

colossal August 12, 2021

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

0 votes
Maciej Kopa August 17, 2022

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
TAGS
AUG Leaders

Atlassian Community Events