Open vorg opened 9 years ago
Minimalistic:
{
"text": "Marcin Ignac @url(http://marcinignac.com) @date(2015-10-11)",
"tags": ["data", "visualization", "generative", "art", "portfolio"],
"attachment": "a9ec723260234db51fb4013924ceae42_screeshot.png"
}
With attributes expanded:
{
"text": "Marcin Ignac",
"url" : "http://marcinignac.com",
"date" : "2015-10-11",
"tags": ["data", "visualization", "generative", "art", "portfolio"],
"attachment": "a9ec723260234db51fb4013924ceae42_screeshot.png"
}
A. Markdown powered node attribute:
{
"text": "My thoughts about data driven art",
"tags": ["data", "art"],
"note" "# Data art\n\nLet's start by comparing data art to data viz..."
}
B. Every paragraph is a separate node:
{
"id: "1",
"text": "My thoughts about data driven art",
"tags": ["data", "art"]
},
{
"id: "2",
"pid: "1",
"text": ""# Data art",
},
{
"id: "3",
"pid: "1",
"text": "Let's start by comparing data art to data viz..."
}
A note could be this box... http://prosemirror.net/demo_markdown.html
Client - Server
Data
Everything is the same type of object
Item
id : String
- id of the itempid : String
- id of the parent item or null for root nodestext : String
- the text or title of the itemtags : String[]
- tags of the itemattachments : String[]
- list of attachment IDsDiscussion
note
field. We could add markdown support there.