# pub.chive.richtext.facets

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.richtext.facets)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.richtext.facets/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.richtext.facets/examples)

## Definitions

### `pub.chive.richtext.facets#bold`

**Type**: `object`

Bold text formatting facet

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `$type` | `string` | Yes |  |

### `pub.chive.richtext.facets#code`

**Type**: `object`

Inline code formatting facet

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `$type` | `string` | Yes |  |

### `pub.chive.richtext.facets#latex`

**Type**: `object`

LaTeX math expression facet

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `$type` | `string` | Yes |  |
| `displayMode` | `boolean` | Yes | True for block display ($$...$$), false for inline ($...$) |

### `pub.chive.richtext.facets#italic`

**Type**: `object`

Italic text formatting facet

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `$type` | `string` | Yes |  |

### `pub.chive.richtext.facets#heading`

**Type**: `object`

Heading formatting facet

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `$type` | `string` | Yes |  |
| `level` | `integer` | Yes | Heading level (1-6) |

### `pub.chive.richtext.facets#listItem`

**Type**: `object`

List item formatting facet

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `$type` | `string` | Yes |  |
| `depth` | `integer` | No | Nesting depth (0-indexed) |
| `ordinal` | `integer` | No | Item number for ordered lists |
| `listType` | `string` | Yes | Type of list |

### `pub.chive.richtext.facets#codeBlock`

**Type**: `object`

Code block formatting facet

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `$type` | `string` | Yes |  |
| `language` | `string` | No | Programming language for syntax highlighting |

### `pub.chive.richtext.facets#blockquote`

**Type**: `object`

Blockquote formatting facet

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `$type` | `string` | Yes |  |

### `pub.chive.richtext.facets#strikethrough`

**Type**: `object`

Strikethrough text formatting facet

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `$type` | `string` | Yes |  |

## Raw Schema

```json
{
  "id": "pub.chive.richtext.facets",
  "defs": {
    "bold": {
      "type": "object",
      "required": [
        "$type"
      ],
      "properties": {
        "$type": {
          "type": "string",
          "const": "pub.chive.richtext.facets#bold"
        }
      },
      "description": "Bold text formatting facet"
    },
    "code": {
      "type": "object",
      "required": [
        "$type"
      ],
      "properties": {
        "$type": {
          "type": "string",
          "const": "pub.chive.richtext.facets#code"
        }
      },
      "description": "Inline code formatting facet"
    },
    "latex": {
      "type": "object",
      "required": [
        "$type",
        "displayMode"
      ],
      "properties": {
        "$type": {
          "type": "string",
          "const": "pub.chive.richtext.facets#latex"
        },
        "displayMode": {
          "type": "boolean",
          "description": "True for block display ($$...$$), false for inline ($...$)"
        }
      },
      "description": "LaTeX math expression facet"
    },
    "italic": {
      "type": "object",
      "required": [
        "$type"
      ],
      "properties": {
        "$type": {
          "type": "string",
          "const": "pub.chive.richtext.facets#italic"
        }
      },
      "description": "Italic text formatting facet"
    },
    "heading": {
      "type": "object",
      "required": [
        "$type",
        "level"
      ],
      "properties": {
        "$type": {
          "type": "string",
          "const": "pub.chive.richtext.facets#heading"
        },
        "level": {
          "type": "integer",
          "maximum": 6,
          "minimum": 1,
          "description": "Heading level (1-6)"
        }
      },
      "description": "Heading formatting facet"
    },
    "listItem": {
      "type": "object",
      "required": [
        "$type",
        "listType"
      ],
      "properties": {
        "$type": {
          "type": "string",
          "const": "pub.chive.richtext.facets#listItem"
        },
        "depth": {
          "type": "integer",
          "maximum": 5,
          "minimum": 0,
          "description": "Nesting depth (0-indexed)"
        },
        "ordinal": {
          "type": "integer",
          "minimum": 1,
          "description": "Item number for ordered lists"
        },
        "listType": {
          "type": "string",
          "description": "Type of list",
          "knownValues": [
            "bullet",
            "ordered"
          ]
        }
      },
      "description": "List item formatting facet"
    },
    "codeBlock": {
      "type": "object",
      "required": [
        "$type"
      ],
      "properties": {
        "$type": {
          "type": "string",
          "const": "pub.chive.richtext.facets#codeBlock"
        },
        "language": {
          "type": "string",
          "maxLength": 50,
          "description": "Programming language for syntax highlighting"
        }
      },
      "description": "Code block formatting facet"
    },
    "blockquote": {
      "type": "object",
      "required": [
        "$type"
      ],
      "properties": {
        "$type": {
          "type": "string",
          "const": "pub.chive.richtext.facets#blockquote"
        }
      },
      "description": "Blockquote formatting facet"
    },
    "strikethrough": {
      "type": "object",
      "required": [
        "$type"
      ],
      "properties": {
        "$type": {
          "type": "string",
          "const": "pub.chive.richtext.facets#strikethrough"
        }
      },
      "description": "Strikethrough text formatting facet"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
