Skip to content

Commit 0aebc0d

Browse files
More bug fixes (#34)
* fix nested list item rendering * add file picker in example * backref highlighting fix * checkpoint
1 parent 7c46c54 commit 0aebc0d

File tree

16 files changed

+11612
-177
lines changed

16 files changed

+11612
-177
lines changed

examples/vite_basic/public/real_doc.json

Lines changed: 10952 additions & 0 deletions
Large diffs are not rendered by default.

examples/vite_basic/public/spacing_test.json

Lines changed: 279 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -22,51 +22,6 @@
2222
}
2323
},
2424
"children": [
25-
{
26-
"object": "block",
27-
"id": "bk_01jxm798e7eantmhjr295qsqm9",
28-
"type": "bulleted_list_item",
29-
"created_time": "2025-06-13T08:42:43.392470Z",
30-
"created_by": {
31-
"object": "user",
32-
"id": "bcf6c03e-51a1-4f05-97d8-d616405b42a2"
33-
},
34-
"has_children": false,
35-
"metadata": {
36-
"origin": {
37-
"file_id": "file_01jxm77f69e09ssze1s203bb2c",
38-
"page_num": 3
39-
}
40-
},
41-
"bulleted_list_item": {
42-
"rich_text": [
43-
{
44-
"type": "text",
45-
"text": {
46-
"content": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
47-
},
48-
"annotations": {},
49-
"plain_text": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
50-
},
51-
{
52-
"type": "text",
53-
"text": {
54-
"content": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
55-
},
56-
"annotations": {},
57-
"plain_text": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
58-
},
59-
{
60-
"type": "text",
61-
"text": {
62-
"content": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
63-
},
64-
"annotations": {},
65-
"plain_text": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
66-
}
67-
]
68-
}
69-
},
7025
{
7126
"object": "block",
7227
"id": "blk_heading1_top",
@@ -1096,6 +1051,285 @@
10961051
}
10971052
]
10981053
}
1054+
},
1055+
{
1056+
"object": "block",
1057+
"id": "bk_01jxm798e7eantmhjr295qsqm9",
1058+
"type": "bulleted_list_item",
1059+
"created_time": "2025-06-13T08:42:43.392470Z",
1060+
"created_by": {
1061+
"object": "user",
1062+
"id": "bcf6c03e-51a1-4f05-97d8-d616405b42a2"
1063+
},
1064+
"has_children": false,
1065+
"metadata": {
1066+
"origin": {
1067+
"file_id": "file_01jxm77f69e09ssze1s203bb2c",
1068+
"page_num": 3
1069+
}
1070+
},
1071+
"bulleted_list_item": {
1072+
"rich_text": [
1073+
{
1074+
"type": "text",
1075+
"text": {
1076+
"content": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
1077+
},
1078+
"annotations": {},
1079+
"plain_text": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
1080+
},
1081+
{
1082+
"type": "text",
1083+
"text": {
1084+
"content": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
1085+
},
1086+
"annotations": {},
1087+
"plain_text": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
1088+
},
1089+
{
1090+
"type": "text",
1091+
"text": {
1092+
"content": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
1093+
},
1094+
"annotations": {},
1095+
"plain_text": "No manual migration, no permanent duplication \\rightarrow all data under single user namespace"
1096+
}
1097+
]
1098+
}
1099+
},
1100+
{
1101+
"object": "block",
1102+
"id": "bk_01jxyv2phzfx6vnc47aekpc09y",
1103+
"type": "bulleted_list_item",
1104+
"created_time": "2025-06-17T11:41:04.027625Z",
1105+
"created_by": {
1106+
"object": "user",
1107+
"id": "4423b092-7ee6-494b-98d1-6631b63b4f78"
1108+
},
1109+
"has_children": true,
1110+
"metadata": {
1111+
"origin": {
1112+
"file_id": "file_01jxyv2atne4tty0rzhrx9ha53",
1113+
"page_num": 8
1114+
}
1115+
},
1116+
"bulleted_list_item": {
1117+
"rich_text": [
1118+
{
1119+
"type": "text",
1120+
"text": {
1121+
"content": "3 Working conditions "
1122+
},
1123+
"annotations": {},
1124+
"plain_text": "3 Working conditions "
1125+
}
1126+
]
1127+
},
1128+
"children": [
1129+
{
1130+
"object": "block",
1131+
"id": "bk_01jxyv2phrf5qsk9f668mg023m",
1132+
"type": "bulleted_list_item",
1133+
"created_time": "2025-06-17T11:41:04.026912Z",
1134+
"created_by": {
1135+
"object": "user",
1136+
"id": "4423b092-7ee6-494b-98d1-6631b63b4f78"
1137+
},
1138+
"has_children": false,
1139+
"metadata": {
1140+
"origin": {
1141+
"file_id": "file_01jxyv2atne4tty0rzhrx9ha53",
1142+
"page_num": 8
1143+
}
1144+
},
1145+
"bulleted_list_item": {
1146+
"rich_text": [
1147+
{
1148+
"type": "text",
1149+
"text": {
1150+
"content": "3.1 Movement area"
1151+
},
1152+
"annotations": {},
1153+
"plain_text": "3.1 Movement area"
1154+
}
1155+
]
1156+
}
1157+
},
1158+
{
1159+
"object": "block",
1160+
"id": "bk_01jxyv2phsfbkt47rr6xb0swz6",
1161+
"type": "bulleted_list_item",
1162+
"created_time": "2025-06-17T11:41:04.027030Z",
1163+
"created_by": {
1164+
"object": "user",
1165+
"id": "4423b092-7ee6-494b-98d1-6631b63b4f78"
1166+
},
1167+
"has_children": false,
1168+
"metadata": {
1169+
"origin": {
1170+
"file_id": "file_01jxyv2atne4tty0rzhrx9ha53",
1171+
"page_num": 8
1172+
}
1173+
},
1174+
"bulleted_list_item": {
1175+
"rich_text": [
1176+
{
1177+
"type": "text",
1178+
"text": {
1179+
"content": "3.2 Arrangement of workstations"
1180+
},
1181+
"annotations": {},
1182+
"plain_text": "3.2 Arrangement of workstations"
1183+
}
1184+
]
1185+
}
1186+
},
1187+
{
1188+
"object": "block",
1189+
"id": "bk_01jxyv2phtffms969ck2xrpggn",
1190+
"type": "bulleted_list_item",
1191+
"created_time": "2025-06-17T11:41:04.027138Z",
1192+
"created_by": {
1193+
"object": "user",
1194+
"id": "4423b092-7ee6-494b-98d1-6631b63b4f78"
1195+
},
1196+
"has_children": false,
1197+
"metadata": {
1198+
"origin": {
1199+
"file_id": "file_01jxyv2atne4tty0rzhrx9ha53",
1200+
"page_num": 8
1201+
}
1202+
},
1203+
"bulleted_list_item": {
1204+
"rich_text": [
1205+
{
1206+
"type": "text",
1207+
"text": {
1208+
"content": "3.3 Equipment"
1209+
},
1210+
"annotations": {},
1211+
"plain_text": "3.3 Equipment"
1212+
}
1213+
]
1214+
}
1215+
},
1216+
{
1217+
"object": "block",
1218+
"id": "bk_01jxyv2phvfcpbkn5c0xja9n4p",
1219+
"type": "bulleted_list_item",
1220+
"created_time": "2025-06-17T11:41:04.027246Z",
1221+
"created_by": {
1222+
"object": "user",
1223+
"id": "4423b092-7ee6-494b-98d1-6631b63b4f78"
1224+
},
1225+
"has_children": false,
1226+
"metadata": {
1227+
"origin": {
1228+
"file_id": "file_01jxyv2atne4tty0rzhrx9ha53",
1229+
"page_num": 8
1230+
}
1231+
},
1232+
"bulleted_list_item": {
1233+
"rich_text": [
1234+
{
1235+
"type": "text",
1236+
"text": {
1237+
"content": "3.4 Lighting and visual communication"
1238+
},
1239+
"annotations": {},
1240+
"plain_text": "3.4 Lighting and visual communication"
1241+
}
1242+
]
1243+
}
1244+
},
1245+
{
1246+
"object": "block",
1247+
"id": "bk_01jxyv2phwfcnr9226peegtbd9",
1248+
"type": "bulleted_list_item",
1249+
"created_time": "2025-06-17T11:41:04.027352Z",
1250+
"created_by": {
1251+
"object": "user",
1252+
"id": "4423b092-7ee6-494b-98d1-6631b63b4f78"
1253+
},
1254+
"has_children": false,
1255+
"metadata": {
1256+
"origin": {
1257+
"file_id": "file_01jxyv2atne4tty0rzhrx9ha53",
1258+
"page_num": 8
1259+
}
1260+
},
1261+
"bulleted_list_item": {
1262+
"rich_text": [
1263+
{
1264+
"type": "text",
1265+
"text": {
1266+
"content": "3.5 Room temperature"
1267+
},
1268+
"annotations": {},
1269+
"plain_text": "3.5 Room temperature"
1270+
}
1271+
]
1272+
}
1273+
},
1274+
{
1275+
"object": "block",
1276+
"id": "bk_01jxyv2phxfrd8r9n2pqsj14f3",
1277+
"type": "bulleted_list_item",
1278+
"created_time": "2025-06-17T11:41:04.027456Z",
1279+
"created_by": {
1280+
"object": "user",
1281+
"id": "4423b092-7ee6-494b-98d1-6631b63b4f78"
1282+
},
1283+
"has_children": false,
1284+
"metadata": {
1285+
"origin": {
1286+
"file_id": "file_01jxyv2atne4tty0rzhrx9ha53",
1287+
"page_num": 8
1288+
}
1289+
},
1290+
"bulleted_list_item": {
1291+
"rich_text": [
1292+
{
1293+
"type": "text",
1294+
"text": {
1295+
"content": "3.6 Ventilation"
1296+
},
1297+
"annotations": {},
1298+
"plain_text": "3.6 Ventilation"
1299+
}
1300+
]
1301+
}
1302+
},
1303+
{
1304+
"object": "block",
1305+
"id": "bk_01jxyv2phye54v96zntdrnk809",
1306+
"type": "bulleted_list_item",
1307+
"created_time": "2025-06-17T11:41:04.027560Z",
1308+
"created_by": {
1309+
"object": "user",
1310+
"id": "4423b092-7ee6-494b-98d1-6631b63b4f78"
1311+
},
1312+
"has_children": false,
1313+
"metadata": {
1314+
"origin": {
1315+
"file_id": "file_01jxyv2atne4tty0rzhrx9ha53",
1316+
"page_num": 8
1317+
}
1318+
},
1319+
"bulleted_list_item": {
1320+
"rich_text": [
1321+
{
1322+
"type": "text",
1323+
"text": {
1324+
"content": "3.7 Noise"
1325+
},
1326+
"annotations": {},
1327+
"plain_text": "3.7 Noise"
1328+
}
1329+
]
1330+
}
1331+
}
1332+
]
10991333
}
11001334
]
11011335
}

0 commit comments

Comments
 (0)