Skip to content

Example: Incoming text/markdown

Let's say you want to save the following text/markdown content in a richtext field:

**this is the body text**

You use that as the content in the following Rich Text JSON:

{
  "type": "text/markdown",
  "encoding": "PLAIN",
  "content": "**this is the body text**"
}

This saves a text/markdown MIME:

MIME-Version: 1.0
Content-Type: text/markdown

**this is the body text**