Converting Markdown to Atlassian's Document Format

Atlassian Document Format API Blog

Converting Markdown to Atlassian's Document Format

Blog Single
5 min read

Converting Markdown to Atlassian’s Document Format

In this blog post we will discuss how to convert markdown text to Atlassian’s Document Format (ADF) using the adfapi.dev API.

Introduction

Atlassian’s Document Format (ADF) is a JSON-based format that is used by Atlassian products like Confluence and Jira to represent rich text documents. The format is designed to be easy to read and write, and is used to store and render documents in these products.

How to Convert Markdown to ADF

To convert markdown formatted text to ADF, you can use the adfapi.dev API. The API takes markdown as input and returns the equivalent ADF as output. Here is an example using curl:

curl -X 'POST' 'https://api.adfapi.dev/api/markdown' -H 'accept: text/plain' -H 'Content-Type: text/html' -d '# hello world'

You can also try out the API yourself by going to our Try It page. Enter your Markdown in the text box, press submit, and you’ll be able to see your document converted to ADF for free.