# support.supper.richtext.facet

> Published by [supper.support](https://lexicon.garden/identity/did:plc:mcsqdltevtjpu26xthzzmm2l)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mcsqdltevtjpu26xthzzmm2l/support.supper.richtext.facet)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mcsqdltevtjpu26xthzzmm2l/support.supper.richtext.facet/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mcsqdltevtjpu26xthzzmm2l/support.supper.richtext.facet/examples)

## Definitions

### `support.supper.richtext.facet#bold`

**Type**: `object`

Bold text.

| Property | Type | Required | Description |
|----------|------|----------|-------------|

### `support.supper.richtext.facet#byteSlice`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `byteEnd` | `integer` | Yes |  |
| `byteStart` | `integer` | Yes |  |

### `support.supper.richtext.facet#code`

**Type**: `object`

Code text.

| Property | Type | Required | Description |
|----------|------|----------|-------------|

### `support.supper.richtext.facet#italic`

**Type**: `object`

Italic text.

| Property | Type | Required | Description |
|----------|------|----------|-------------|

### `support.supper.richtext.facet#link`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (uri) | Yes | An absolute HTTP or HTTPS URL. Readers must reject other schemes and must not execute markup. |

### `support.supper.richtext.facet`

**Type**: `object`

Annotations over UTF-8 byte ranges. Readers render recognized features only. Ranges must be nonempty, end-exclusive, within plaintext and on code point boundaries.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `features` | `array` | Yes |  |
| `index` | `ref` → `#byteSlice` | Yes |  |

### `support.supper.richtext.facet#mention`

**Type**: `object`

Account identity, independent of a cached handle or preferred profile client.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |

### `support.supper.richtext.facet#underline`

**Type**: `object`

Underline text.

| Property | Type | Required | Description |
|----------|------|----------|-------------|

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "bold": {
      "description": "Bold text.",
      "properties": {},
      "type": "object"
    },
    "byteSlice": {
      "properties": {
        "byteEnd": {
          "minimum": 0,
          "type": "integer"
        },
        "byteStart": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "byteStart",
        "byteEnd"
      ],
      "type": "object"
    },
    "code": {
      "description": "Code text.",
      "properties": {},
      "type": "object"
    },
    "italic": {
      "description": "Italic text.",
      "properties": {},
      "type": "object"
    },
    "link": {
      "properties": {
        "uri": {
          "description": "An absolute HTTP or HTTPS URL. Readers must reject other schemes and must not execute markup.",
          "format": "uri",
          "maxLength": 8000,
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "main": {
      "description": "Annotations over UTF-8 byte ranges. Readers render recognized features only. Ranges must be nonempty, end-exclusive, within plaintext and on code point boundaries.",
      "properties": {
        "features": {
          "items": {
            "closed": false,
            "refs": [
              "#bold",
              "#italic",
              "#underline",
              "#code",
              "#link",
              "#mention"
            ],
            "type": "union"
          },
          "maxLength": 16,
          "type": "array"
        },
        "index": {
          "ref": "#byteSlice",
          "type": "ref"
        }
      },
      "required": [
        "index",
        "features"
      ],
      "type": "object"
    },
    "mention": {
      "description": "Account identity, independent of a cached handle or preferred profile client.",
      "properties": {
        "did": {
          "format": "did",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "underline": {
      "description": "Underline text.",
      "properties": {},
      "type": "object"
    }
  },
  "id": "support.supper.richtext.facet",
  "lexicon": 1
}
```
