We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c4a793 commit ca5c768Copy full SHA for ca5c768
notion_docs_sync/markdown.py
@@ -244,10 +244,17 @@ def render_list_item(self, token):
244
245
children = self.__render_multiple(token.children)
246
247
+ title = []
248
+
249
+ if len(children) > 0:
250
+ if children[0]['type'] == TextBlock:
251
+ title = only_notion_text(children[0:1])
252
+ children = children[1:]
253
254
return {
255
'type': block_type,
- 'title': only_notion_text(children),
- 'children': without_notion_text(children),
256
+ 'title': title,
257
+ 'children': children
258
}
259
260
def render_table(self, token):
0 commit comments