at.markpub.facets.baseBlocks

markpub.at

{
  "id": "at.markpub.facets.baseBlocks",
  "defs": {
    "raw": {
      "type": "object",
      "properties": {},
      "description": "Place raw text at the provided byte index. This is a powerful escape hatch for anything that can't be achieved with the other facet features, but use it with caution as it can easily break things if used incorrectly. Do not expect systems to render it."
    },
    "main": {
      "type": "object",
      "required": [
        "index",
        "features"
      ],
      "properties": {
        "index": {
          "ref": "#byteSlice",
          "type": "ref"
        },
        "features": {
          "type": "array",
          "items": {
            "refs": [
              "#horizontalRule",
              "#yamlFrontMatter",
              "#raw"
            ],
            "type": "union"
          }
        }
      }
    },
    "byteSlice": {
      "type": "object",
      "required": [
        "byteStart",
        "byteEnd"
      ],
      "properties": {
        "byteEnd": {
          "type": "integer",
          "minimum": 0
        },
        "byteStart": {
          "type": "integer",
          "minimum": 0
        }
      },
      "description": "Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. Byte slices can overlap."
    },
    "horizontalRule": {
      "type": "object",
      "properties": {},
      "description": "Place an `<hr>` element at the provided byte index."
    },
    "yamlFrontMatter": {
      "type": "object",
      "properties": {},
      "description": "Identify a block of front matter at the top of the Markdown block. It is expected that this has a byteStart and byteEnd."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}

Validate Record

Validate a record against at.markpub.facets.baseBlocks

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:kfxbexqtvw76572grhv2f3on
CID
bafyreiap2hfmfi6btahcfjqgtz4iggljdnufvykedm6wnwuenbrtoqcqi4
Indexed At
2026-06-26 03:56 UTC
AT-URI
at://did:plc:kfxbexqtvw76572grhv2f3on/com.atproto.lexicon.schema/at.markpub.facets.baseBlocks

Lexicon Garden

@