mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
feat: add support for rendering table cell content in markdown conversion
This commit is contained in:
parent
6cc74689bc
commit
49ac09b2cb
1 changed files with 7 additions and 0 deletions
|
|
@ -155,6 +155,13 @@ def _render_block(block: dict[str, Any], indent: int = 0) -> list[str]:
|
|||
if isinstance(cell, list):
|
||||
# Cell is a list of inline content
|
||||
cell_texts.append(_render_inline_content(cell))
|
||||
elif isinstance(cell, dict):
|
||||
# Cell is a tableCell object with its own content
|
||||
cell_content = cell.get("content")
|
||||
if isinstance(cell_content, list):
|
||||
cell_texts.append(_render_inline_content(cell_content))
|
||||
else:
|
||||
cell_texts.append("")
|
||||
elif isinstance(cell, str):
|
||||
cell_texts.append(cell)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue