You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
}
}
}
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.