{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "image": {
      "descriptions": "Images from the markdown content, separately uploaded and link in markdown content with blob CID.",
      "properties": {
        "alt": {
          "description": "Alt text for the image.",
          "maxLength": 2000,
          "type": "string"
        },
        "image": {
          "accept": [
            "image/*"
          ],
          "maxSize": 2000000,
          "type": "blob"
        }
      },
      "required": [
        "image"
      ],
      "type": "object"
    },
    "main": {
      "description": "A markdown blog post with LaTeX, GitHub notes, Mermaid, YouTube and Bluesky extensions.",
      "key": "tid",
      "record": {
        "properties": {
          "content": {
            "description": "Markdown content. Local image paths are replaced with blob CIDs at publish time.",
            "maxLength": 10000,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "fontFamily": {
            "description": "Font family name available from Coollabs.",
            "maxLength": 200,
            "type": "string"
          },
          "fontSize": {
            "description": "Font size in points. Recommended range: 9–21, but clients may allow larger sizes for accessibility.",
            "type": "integer"
          },
          "images": {
            "description": "Blob references for images embedded in the markdown content.",
            "items": {
              "ref": "#image",
              "type": "ref"
            },
            "maxLength": 20,
            "type": "array"
          },
          "publishedAt": {
            "format": "datetime",
            "type": "string"
          },
          "theme": {
            "description": "Display theme for the note.",
            "knownValues": [
              "light",
              "dark"
            ],
            "type": "string"
          },
          "title": {
            "maxLength": 1000,
            "type": "string"
          }
        },
        "required": [
          "title",
          "content"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "space.litenote.note",
  "lexicon": 1
}
