Playground
Input
Output
{ "timelines": [ { "events": { "value": [ { "value": [ { "value": { "eventString": "Jan 2019: The Bahamas [Bahamas](location) #Travel", "eventText": " The Bahamas [Bahamas](location) #Travel", "dateRangeIso": { "fromDateTimeIso": "2019-01-01T00:00:00.000+00:00", "toDateTimeIso": "2019-02-01T00:00:00.000+00:00" }, "rangeInText": { "from": 108, "to": 158, "type": "event", "lineFrom": { "line": 7, "index": 0 }, "lineTo": { "line": 7, "index": 49 } }, "eventDescription": { "tags": [ "Travel" ], "supplemental": [], "locations": [ "Bahamas" ], "matchedListItems": [], "eventDescription": "The Bahamas " }, "dateText": "Jan 2019", "dateRangeInText": { "type": "dateRange", "from": 108, "to": 116, "lineFrom": { "line": 7, "index": 0 }, "lineTo": { "line": 7, "index": 8 } } } } ], "tags": [ "Travel" ], "style": "group", "rangeInText": { "from": 87, "to": 93, "type": "section", "lineFrom": { "line": 6, "index": 0 }, "lineTo": { "line": 6, "index": 6 } }, "startExpanded": true, "title": "Travel" }, { "value": [ { "value": { "eventString": "August 2020 - now: Getting my degree #Education", "eventText": " Getting my degree #Education", "dateRangeIso": { "fromDateTimeIso": "2020-08-01T00:00:00.000+00:00", "toDateTimeIso": "2023-03-25T13:08:08.401+00:00" }, "rangeInText": { "from": 188, "to": 236, "type": "event", "lineFrom": { "line": 11, "index": 0 }, "lineTo": { "line": 11, "index": 47 } }, "eventDescription": { "tags": [ "Education" ], "supplemental": [], "locations": [], "matchedListItems": [], "eventDescription": "Getting my degree" }, "dateText": "August 2020 - now", "dateRangeInText": { "type": "dateRange", "from": 188, "to": 205, "lineFrom": { "line": 11, "index": 0 }, "lineTo": { "line": 11, "index": 17 } } } } ], "tags": [], "style": "section", "rangeInText": { "from": 168, "to": 176, "type": "section", "lineFrom": { "line": 10, "index": 0 }, "lineTo": { "line": 10, "index": 8 } }, "startExpanded": true, "title": "Other stuff" } ] }, "head": { "value": { "eventString": "Jan 2019: The Bahamas [Bahamas](location) #Travel", "eventText": " The Bahamas [Bahamas](location) #Travel", "dateRangeIso": { "fromDateTimeIso": "2019-01-01T00:00:00.000+00:00", "toDateTimeIso": "2019-02-01T00:00:00.000+00:00" }, "rangeInText": { "from": 108, "to": 158, "type": "event", "lineFrom": { "line": 7, "index": 0 }, "lineTo": { "line": 7, "index": 49 } }, "eventDescription": { "tags": [ "Travel" ], "supplemental": [], "locations": [ "Bahamas" ], "matchedListItems": [], "eventDescription": "The Bahamas " }, "dateText": "Jan 2019", "dateRangeInText": { "type": "dateRange", "from": 108, "to": 116, "lineFrom": { "line": 7, "index": 0 }, "lineTo": { "line": 7, "index": 8 } } } }, "tail": { "value": { "eventString": "August 2020 - now: Getting my degree #Education", "eventText": " Getting my degree #Education", "dateRangeIso": { "fromDateTimeIso": "2020-08-01T00:00:00.000+00:00", "toDateTimeIso": "2023-03-25T13:08:08.401+00:00" }, "rangeInText": { "from": 188, "to": 236, "type": "event", "lineFrom": { "line": 11, "index": 0 }, "lineTo": { "line": 11, "index": 47 } }, "eventDescription": { "tags": [ "Education" ], "supplemental": [], "locations": [], "matchedListItems": [], "eventDescription": "Getting my degree" }, "dateText": "August 2020 - now", "dateRangeInText": { "type": "dateRange", "from": 188, "to": 205, "lineFrom": { "line": 11, "index": 0 }, "lineTo": { "line": 11, "index": 17 } } } }, "tags": { "Travel": "2, 132, 199", "Education": "170, 187, 85" }, "ids": {}, "ranges": [ { "type": "title", "from": 0, "to": 6, "lineFrom": { "line": 0, "index": 0 }, "lineTo": { "line": 0, "index": 6 } }, { "type": "description", "from": 27, "to": 39, "lineFrom": { "line": 1, "index": 0 }, "lineTo": { "line": 1, "index": 12 } }, { "type": "tag", "from": 55, "to": 62, "lineFrom": { "line": 3, "index": 0 }, "lineTo": { "line": 3, "index": 7 }, "content": { "tag": "Travel", "color": "2, 132, 199" } }, { "type": "tagDefinition", "from": 55, "to": 68, "lineFrom": { "line": 3, "index": 0 }, "lineTo": { "line": 3, "index": 13 }, "content": { "tag": "Travel", "color": "2, 132, 199" } }, { "type": "tag", "from": 69, "to": 79, "lineFrom": { "line": 4, "index": 0 }, "lineTo": { "line": 4, "index": 10 }, "content": { "tag": "Education", "color": "170, 187, 85" } }, { "type": "tagDefinition", "from": 69, "to": 85, "lineFrom": { "line": 4, "index": 0 }, "lineTo": { "line": 4, "index": 16 }, "content": { "tag": "Education", "color": "170, 187, 85" } }, { "type": "tag", "from": 100, "to": 107, "lineFrom": { "line": 6, "index": 13 }, "lineTo": { "line": 6, "index": 20 }, "content": { "tag": "Travel", "color": "2, 132, 199" } }, { "from": 87, "to": 93, "type": "section", "lineFrom": { "line": 6, "index": 0 }, "lineTo": { "line": 6, "index": 6 } }, { "type": "tag", "from": 150, "to": 157, "lineFrom": { "line": 7, "index": 42 }, "lineTo": { "line": 7, "index": 49 }, "content": { "tag": "Travel", "color": "2, 132, 199" } }, { "type": "dateRange", "from": 108, "to": 116, "lineFrom": { "line": 7, "index": 0 }, "lineTo": { "line": 7, "index": 8 } }, { "type": "dateRange", "from": 116, "to": 117, "lineFrom": { "line": 7, "index": 8 }, "lineTo": { "line": 7, "index": 9 } }, { "from": 158, "to": 166, "type": "section", "lineFrom": { "line": 8, "index": 0 }, "lineTo": { "line": 8, "index": 8 } }, { "from": 168, "to": 176, "type": "section", "lineFrom": { "line": 10, "index": 0 }, "lineTo": { "line": 10, "index": 8 } }, { "type": "tag", "from": 225, "to": 235, "lineFrom": { "line": 11, "index": 37 }, "lineTo": { "line": 11, "index": 47 }, "content": { "tag": "Education", "color": "170, 187, 85" } }, { "type": "dateRange", "from": 188, "to": 205, "lineFrom": { "line": 11, "index": 0 }, "lineTo": { "line": 11, "index": 17 } }, { "type": "dateRange", "from": 205, "to": 206, "lineFrom": { "line": 11, "index": 17 }, "lineTo": { "line": 11, "index": 18 } }, { "from": 236, "to": 246, "type": "section", "lineFrom": { "line": 12, "index": 0 }, "lineTo": { "line": 12, "index": 10 } } ], "foldables": { "87": { "type": "section", "startLine": 6, "startIndex": 87, "endIndex": 166, "foldStartIndex": 107 }, "168": { "type": "section", "startLine": 10, "startIndex": 168, "endIndex": 246, "foldStartIndex": 187 } }, "metadata": { "earliestTime": "2019-01-01T00:00:00.000+00:00", "latestTime": "2023-03-25T13:08:08.401+00:00", "maxDurationDays": 966.5473194560185, "dateFormat": "M/d/y", "startLineIndex": 0, "startStringIndex": 0, "endLineIndex": 14, "endStringIndex": 248, "title": "My timeline example", "description": "Hello, world!", "view": [], "edit": [] } } ] }
You can also play with the parser and the output of the playground in the javascript console, with window.parse
and window.markwhen
, respectively.