Convert LibreOffice Calc Spreadsheets (*.ods) into Markdown tables
-
Get Python 3.7+
-
Install poetry
pip install poetry
-
Install packages
poetry install --no-dev
ods2md --in-file=source.ods
ods2md --in-file=source.ods --out-file=output.md
from ods2md import OdsConverter
# Get result to variable
result: StringIO = OdsConverter('source.ods').convert()
# Save result to file
OdsConverter('source.ods').convert('output.md')
- This program disregards all formats. Currencies and percentages will be displayed as plain numbers.
- Merged cells are not supported, the content will be shown at the first cell (this is actually a limitation of GFM table)