# us.off-the-clock.document.markdown

> Markdown body for a site.standard.document, stored as a blob beside the document (D89).

- Kind: object
- Authority: document.off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.document.markdown)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.document.markdown/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.document.markdown/analytics)

## Object (`us.off-the-clock.document.markdown`)

Type: object

### Properties

- `blob` (blob, required): UTF-8 markdown source, uploaded with Content-Type text/markdown.
  - Constraints: maxSize: 1000000, accept: text/markdown, text/plain
- `flavor` (string): Markdown dialect to render with. Defaults to commonmark.
  - Constraints: knownValues: commonmark
- `images` (array): The images the body shows, each named in it as cid:<cid>, so the document references every blob it uses.
  - Constraints: maxLength: 20
  - `items` (ref)
    - Reference: `#image`

## #image (`us.off-the-clock.document.markdown#image`)

Type: object

### Properties

- `alt` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `image` (blob, required)
  - Constraints: maxSize: 1000000, accept: image/*

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "image": {
      "properties": {
        "alt": {
          "maxGraphemes": 1000,
          "maxLength": 10000,
          "type": "string"
        },
        "image": {
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000,
          "type": "blob"
        }
      },
      "required": [
        "image"
      ],
      "type": "object"
    },
    "main": {
      "properties": {
        "blob": {
          "accept": [
            "text/markdown",
            "text/plain"
          ],
          "description": "UTF-8 markdown source, uploaded with Content-Type text/markdown.",
          "maxSize": 1000000,
          "type": "blob"
        },
        "flavor": {
          "description": "Markdown dialect to render with. Defaults to commonmark.",
          "knownValues": [
            "commonmark"
          ],
          "type": "string"
        },
        "images": {
          "description": "The images the body shows, each named in it as cid:<cid>, so the document references every blob it uses.",
          "items": {
            "ref": "#image",
            "type": "ref"
          },
          "maxLength": 20,
          "type": "array"
        }
      },
      "required": [
        "blob"
      ],
      "type": "object"
    }
  },
  "description": "Markdown body for a site.standard.document, stored as a blob beside the document (D89).",
  "id": "us.off-the-clock.document.markdown",
  "lexicon": 1
}
```
