Developer
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Nov 4, 2025

Mark - code

Purpose

The code mark sets code styling. This mark applies to text nodes.

Example

1
2
{
  "type": "text",
  "text": "Hello world",
  "marks": [
    {
      "type": "code"
    }
  ]
}

Combinations with other marks

code can ONLY be combined with the following marks:

Fields

NameRequiredTypeValue
typestring"code"

Rate this page: