I'm trying to get lots of files that have Confluence markup onto a site. The markup does not copy/paste successfully, but putting it through insert --> markup works and allows the markup to properly display.
Since I have over 1,600 files to upload, is there a way to use the create space (POST /rest/space) request so that it knows to recognize the content as markup?
Hi @Emily Kern,
If you want to script it using REST API, you could use
POST /rest/api/content?status=current&expand=body.storage
with the body set to:
{"type":"page","title":"Wikimarkup Page",
"space":{"key":"YOURSPACEKEY"},"body":{"storage":{"value":"*bold* -strikethrough-","representation":
"wiki"}}}'
doing so my example content *bold* -strikethrough- was transformed by Confluence to
<p><strong>bold</strong> <span style=\"text-decoration: line-through;\">strikethrough</span></p>
in the page storage format in creation :)
Best, Tobias
Thank you for your response, but I am not sure if I understand. I am looking to use the Confluence markup, not any other markup.
So I do not need new markup generated, I just need a way for whatever page or space I'm creating/importing to to recognize the Confluence markup so that content displays properly.
Unless, in the not unlikely event I completely misunderstood, using the storage format and perhaps retrieving it makes page/space recognize Confluence markup better?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.