_print(f'[red]Single-row table found. Consider replacing it in the original document:\n{rows[0]}')
_print(f'[red]Single-row table found. Such tables cannot be converted to markdown.[/red] Please consider to change the following table in the original document:\n[grey39]{rows[0]}',highlight=False)
lines.append('')# Add an empty line before a table
foridx,rowinenumerate(rows):
# Check for a table caption and add separator line
ifidx==1:
lines.append('-'.join('|'*(len(row)+1)))
# Add table row
lines.append(f'|{"|".join(row)}|'
.replace('\n',_linebreak))# replace line breaks in cells
lines.append('')# Add another empty line after a table