Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1008 Bytes

File metadata and controls

47 lines (34 loc) · 1008 Bytes
pinpt-logo

This repo contains Golang utilities for working with Atlassian Document Format content

Overview

The Atlassian Document Format (ADF) represents rich text stored in Atlassian products. For example, in Jira Cloud platform, the text in issue comments and in textarea custom fields is stored as ADF.

This library provides a set of utilities in Golang for dealing with ADF content.

Install

go get -u github.com/pinpt/adf

Usage

import github.com/pinpt/adf

buf, err := adf.GenerateHTMLFromADF([]byte(`{
  "version": 1,
  "type": "doc",
  "content": [
    {
      "type": "paragraph",
      "content": [
        {
          "type": "text",
          "text": "Hello world"
        }
      ]
    }
  ]
}`))

License

Licensed under the MIT License.