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