Convert LibreOffice Calc Spreadsheets (*.ods) into Markdown tables. Clone of https://github.com/kennytm/ods2md with updates
Find a file
Tyler Moore c78eea2b00
Fix Cells With Linefeeds
- convert linefeeds to `<br>` before outputting markdown
2020-11-24 16:19:34 -05:00
test Added test cases. 2017-02-18 23:51:00 +08:00
.gitignore Initial commit 2015-10-20 04:51:25 +08:00
.travis.yml Enable Travis CI 2017-02-19 00:09:45 +08:00
ods2md.py Fix Cells With Linefeeds 2020-11-24 16:19:34 -05:00
README.md A missing command 2017-07-31 17:59:56 +03: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
test.py Added test cases. 2017-02-18 23:51:00 +08:00

ods2md

License: MIT Build Status

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