# app.atmobb.richtext.block

> Published by [lexicons.atmobb.app](https://lexicon.garden/identity/did:plc:dqnwiguwsbb6uwrm7a2rsff2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:dqnwiguwsbb6uwrm7a2rsff2/app.atmobb.richtext.block)
- [Documentation](https://lexicon.garden/lexicon/did:plc:dqnwiguwsbb6uwrm7a2rsff2/app.atmobb.richtext.block/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:dqnwiguwsbb6uwrm7a2rsff2/app.atmobb.richtext.block/examples)

## Definitions

### `app.atmobb.richtext.block#code`

**Type**: `object`

A code block.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `lang` | `string` | No |  |
| `text` | `string` | Yes |  |

### `app.atmobb.richtext.block#text`

**Type**: `object`

A paragraph of rich text.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `text` | `string` | Yes |  |
| `facets` | `array` | No |  |

### `app.atmobb.richtext.block#image`

**Type**: `object`

An embedded image.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | No |  |
| `image` | `blob` | Yes |  |

### `app.atmobb.richtext.block#quote`

**Type**: `object`

A quote block, optionally attributed to another record (e.g. the reply being quoted).

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `text` | `string` | Yes |  |
| `facets` | `array` | No |  |
| `subject` | `ref` → `com.atproto.repo.strongRef` | No |  |

## Raw Schema

```json
{
  "id": "app.atmobb.richtext.block",
  "defs": {
    "code": {
      "type": "object",
      "required": [
        "text"
      ],
      "properties": {
        "lang": {
          "type": "string",
          "maxLength": 64
        },
        "text": {
          "type": "string",
          "maxLength": 100000,
          "maxGraphemes": 10000
        }
      },
      "description": "A code block."
    },
    "text": {
      "type": "object",
      "required": [
        "text"
      ],
      "properties": {
        "text": {
          "type": "string",
          "maxLength": 100000,
          "maxGraphemes": 10000
        },
        "facets": {
          "type": "array",
          "items": {
            "ref": "app.atmobb.richtext.facet",
            "type": "ref"
          }
        }
      },
      "description": "A paragraph of rich text."
    },
    "image": {
      "type": "object",
      "required": [
        "image"
      ],
      "properties": {
        "alt": {
          "type": "string",
          "maxLength": 10000,
          "maxGraphemes": 1000
        },
        "image": {
          "type": "blob",
          "accept": [
            "image/*"
          ],
          "maxSize": 2000000
        }
      },
      "description": "An embedded image."
    },
    "quote": {
      "type": "object",
      "required": [
        "text"
      ],
      "properties": {
        "text": {
          "type": "string",
          "maxLength": 100000,
          "maxGraphemes": 10000
        },
        "facets": {
          "type": "array",
          "items": {
            "ref": "app.atmobb.richtext.facet",
            "type": "ref"
          }
        },
        "subject": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "description": "A quote block, optionally attributed to another record (e.g. the reply being quoted)."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
