{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Marginalia",
  "description": "Right-rail italic notes anchored to in-body markers; collapses to inline asides at narrow viewports.",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "title": "Marginalia Notes",
      "description": "List of italic notes for the right rail.",
      "default": [],
      "x-editor": "array",
      "items": {
        "type": "object",
        "properties": {
          "note": {
            "type": "string",
            "title": "Note",
            "description": "Note body text. Rich text is permitted.",
            "x-editor": "richtext"
          },
          "anchor": {
            "type": "string",
            "title": "Anchor Label",
            "description": "Optional anchor label (e.g. paragraph marker) the note attaches to.",
            "x-editor": "text"
          }
        }
      }
    }
  }
}
