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: