// documents.proto - https://github.com/MintterHypermedia/mintter/blob/main/proto/documents/v1alpha/documents.proto
Document {
string id = 1;
string title = 2;
string author = 4;
repeated string editors = 11;
repeated BlockNode children = 9;
google.protobuf.Timestamp create_time = 6;
google.protobuf.Timestamp update_time = 7;
google.protobuf.Timestamp publish_time = 8;
}
BlockNode {
Block block = 1;
repeated BlockNode children = 2;
}
Block {
string id = 1;
string type = 2;
string text = 3;
string ref = 7;
map<string, string> attributes = 4;
repeated Annotation annotations = 5;
string revision = 6;
}
paragraph
, heading
, image
, file
, video
and embed
.BlocNode
Block heading // will be H2
children
BlockNode
Block paragraph
BlockNode
Block heading // will be H3