How to convert markdown content in Confluence using Confluence CLI
To insert markdown content in Confluence, you can follow two approaches:
Embed markdown content into a Confluence page using Confluence CLI (recommended).
For more information see: https://appfire.atlassian.net/wiki/spaces/SUPPORT/pages/edit-v2/398655493?draftShareId=da2dbb49-db34-4c8c-ae91-317ae7b06051
OR
Convert markdown content to the Confluence storage format (markup) using the markdown parameter.
Note that the conversion may cause inaccuracies when rendering the markdown in the Confluence storage format.
The focus of this article is to show you how to convert markdown content using Confluence CLI.
Converting markdown content - instructions
Note that by default, markdown is converted to markup unless the noconvert
parameter is selected.
"--action storePage --noConvert --markdown"
--continue
You can convert markdown pages, files and text to the Confluence storage format.
To begin, create a markdown page or a file that you can convert.
StorePage Action for creating a markdown page
Use the storePage
action to create a markdown page for conversion.
--action storePage --space SPACENAME --title "PAGENAME" --content "this creates my testpage for markdown conversion"
For more information on the parameters for converting markdown to the storage format, check storePage
storePage Examples
Check the Examples | Examples storePage to view a variety of examples on how you can use the storePage action.
Required Parameters | Optional Parameters |
Space | content |
Title or ID | content2 |
Content or file | file |
| input |
| markdown |
convertToStorageFormat Action for converting markdown to Confluence storage format.
When you convert markdown to the Confluence storage format, use the action convertToStorageFormat
together with the relevant parameters.
You can convert to Confluence storage format the following parameters:
content
content2
file
input
markdown
For more information on the parameters for converting markdown to the storage format, check convertToStorageFormat
convertToStorageFormat Examples
|
|
|