diff --git a/deepsearch/documents/core/export.py b/deepsearch/documents/core/export.py index 869b949b..4d15483d 100644 --- a/deepsearch/documents/core/export.py +++ b/deepsearch/documents/core/export.py @@ -49,8 +49,7 @@ def export_to_markdown(document: Dict[str, Any]) -> str: else: markdown_text += f"{text}\n\n" - elif item_type in ("table"): - + elif item_type in ("table") and item.get("data", []): table = [] for row in item["data"]: