Skip to content

Commit 68117b2

Browse files
committed
Checkpoint
1 parent f047eb1 commit 68117b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jsondoc/convert/html.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,15 @@ def override_reconcile_to_caption_placeholder_block(
244244
and set it as the rich text of the caption placeholder block
245245
Finally, it will return the caption placeholder block
246246
"""
247+
247248
final_rich_text = []
248249
for child in children:
249250
if isinstance(child, RichTextBase):
250251
final_rich_text.append(child)
251252
elif isinstance(child, BlockBase):
252253
final_rich_text.extend(get_rich_text_from_block(child))
254+
elif isinstance(child, str):
255+
final_rich_text.append(create_rich_text(text=child))
253256
else:
254257
pass
255258
# raise ValueError(f"Unsupported type: {type(child)}")

0 commit comments

Comments
 (0)