Convert LibreOffice Calc Spreadsheets (*.ods) into Markdown tables. Clone of https://github.com/kennytm/ods2md with updates
Find a file
2017-02-18 23:20:57 +08:00
.gitignore Initial commit 2015-10-20 04:51:25 +08:00
ods2md.py License and Readme and update dependencies. 2017-02-18 23:20:57 +08:00
README.md License and Readme and update dependencies. 2017-02-18 23:20:57 +08:00
requirements.txt License and Readme and update dependencies. 2017-02-18 23:20:57 +08:00
sample.png License and Readme and update dependencies. 2017-02-18 23:20:57 +08:00

ods2md

License: MIT

Convert LibreOffice Calc Spreadsheets (*.ods) into Markdown tables

Sample output

Install

  1. Get Python 3.

  2. (Optional) Create a virtual environment.

    python3 -m venv env
    . env/bin/activate
    
  3. Install ezodf for parsing *.ods files

    pip3 -r requirements.txt
    

Usage

./ods2md.py input_file.ods > output_file.md

Limitations

  • 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)